summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egltypedefs.h
diff options
context:
space:
mode:
authorAlexander von Gluck IV <kallisti5@unixzen.com>2015-05-13 17:13:37 -0500
committerAlexander von Gluck IV <kallisti5@unixzen.com>2015-05-14 14:08:37 -0400
commit8362068c1b28eb2d3e334abc980c4711957d61fd (patch)
tree18022327791b5e8899bcd0442ce48c3c2640a616 /src/egl/main/egltypedefs.h
parent175cbb447ae85b93b8b0244f345064763131481f (diff)
downloadexternal_mesa3d-8362068c1b28eb2d3e334abc980c4711957d61fd.zip
external_mesa3d-8362068c1b28eb2d3e334abc980c4711957d61fd.tar.gz
external_mesa3d-8362068c1b28eb2d3e334abc980c4711957d61fd.tar.bz2
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/egl/main/egltypedefs.h')
-rw-r--r--src/egl/main/egltypedefs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/egl/main/egltypedefs.h b/src/egl/main/egltypedefs.h
index e90959a..82064a7 100644
--- a/src/egl/main/egltypedefs.h
+++ b/src/egl/main/egltypedefs.h
@@ -38,6 +38,11 @@
#include "eglcompiler.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct _egl_api _EGLAPI;
typedef struct _egl_array _EGLArray;
@@ -68,4 +73,9 @@ typedef struct _egl_sync _EGLSync;
typedef struct _egl_thread_info _EGLThreadInfo;
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* EGLTYPEDEFS_INCLUDED */