diff options
author | Alexander von Gluck IV <[email protected]> | 2015-05-13 17:13:37 -0500 |
---|---|---|
committer | Alexander von Gluck IV <[email protected]> | 2015-05-14 14:08:37 -0400 |
commit | 8362068c1b28eb2d3e334abc980c4711957d61fd (patch) | |
tree | 18022327791b5e8899bcd0442ce48c3c2640a616 /src/egl/main/eglcurrent.h | |
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 <[email protected]>
Diffstat (limited to 'src/egl/main/eglcurrent.h')
-rw-r--r-- | src/egl/main/eglcurrent.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/egl/main/eglcurrent.h b/src/egl/main/eglcurrent.h index 3343755c985..1e386acdafb 100644 --- a/src/egl/main/eglcurrent.h +++ b/src/egl/main/eglcurrent.h @@ -34,6 +34,10 @@ #include "egltypedefs.h" +#ifdef __cplusplus +extern "C" { +#endif + #define _EGL_API_ALL_BITS \ (EGL_OPENGL_ES_BIT | \ EGL_OPENVG_BIT | \ @@ -115,4 +119,8 @@ extern EGLBoolean _eglError(EGLint errCode, const char *msg); +#ifdef __cplusplus +} +#endif + #endif /* EGLCURRENT_INCLUDED */ |