diff options
author | Alexander von Gluck IV <kallisti5@unixzen.com> | 2015-05-13 17:13:37 -0500 |
---|---|---|
committer | Alexander von Gluck IV <kallisti5@unixzen.com> | 2015-05-14 14:08:37 -0400 |
commit | 8362068c1b28eb2d3e334abc980c4711957d61fd (patch) | |
tree | 18022327791b5e8899bcd0442ce48c3c2640a616 /src/loader | |
parent | 175cbb447ae85b93b8b0244f345064763131481f (diff) |
egl: Add needed extern "C" for C++ access
* Haiku's egl driver is C++ due to the interface natively being C++
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/loader')
-rw-r--r-- | src/loader/loader.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/loader/loader.h b/src/loader/loader.h index 810e7da7f9..60c58f2f8f 100644 --- a/src/loader/loader.h +++ b/src/loader/loader.h @@ -27,6 +27,10 @@ #ifndef LOADER_H #define LOADER_H +#ifdef __cplusplus +extern "C" { +#endif + /* Helpers to figure out driver and device name, eg. from pci-id, etc. */ #define _LOADER_DRI (1 << 0) @@ -61,4 +65,9 @@ loader_get_user_preferred_fd(int default_fd, int *different_device); void loader_set_logger(void (*logger)(int level, const char *fmt, ...)); + +#ifdef __cplusplus +} +#endif + #endif /* LOADER_H */ |