summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldefines.h
diff options
context:
space:
mode:
authorAlexander von Gluck IV <[email protected]>2015-05-13 17:13:37 -0500
committerAlexander von Gluck IV <[email protected]>2015-05-14 14:08:37 -0400
commit8362068c1b28eb2d3e334abc980c4711957d61fd (patch)
tree18022327791b5e8899bcd0442ce48c3c2640a616 /src/egl/main/egldefines.h
parent175cbb447ae85b93b8b0244f345064763131481f (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 <[email protected]>
Diffstat (limited to 'src/egl/main/egldefines.h')
-rw-r--r--src/egl/main/egldefines.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/egl/main/egldefines.h b/src/egl/main/egldefines.h
index 4c9e014fcea..a32cab26408 100644
--- a/src/egl/main/egldefines.h
+++ b/src/egl/main/egldefines.h
@@ -34,6 +34,9 @@
#ifndef EGLDEFINES_INCLUDED
#define EGLDEFINES_INCLUDED
+#ifdef __cplusplus
+extern "C" {
+#endif
#define _EGL_MAX_EXTENSIONS_LEN 1000
@@ -41,5 +44,8 @@
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
+#ifdef __cplusplus
+}
+#endif
#endif /* EGLDEFINES_INCLUDED */