From 8362068c1b28eb2d3e334abc980c4711957d61fd Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 13 May 2015 17:13:37 -0500 Subject: egl: Add needed extern "C" for C++ access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Haiku's egl driver is C++ due to the interface natively being C++ Reviewed-⁠by: Brian Paul --- src/egl/main/eglarray.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/egl/main/eglarray.h') diff --git a/src/egl/main/eglarray.h b/src/egl/main/eglarray.h index 228f6c3d2ca..29b7128b68d 100644 --- a/src/egl/main/eglarray.h +++ b/src/egl/main/eglarray.h @@ -34,6 +34,10 @@ #include "egltypedefs.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef EGLBoolean (*_EGLArrayForEach)(void *elem, void *foreach_data); @@ -83,4 +87,8 @@ _eglGetArraySize(_EGLArray *array) } +#ifdef __cplusplus +} +#endif + #endif /* EGLARRAY_INCLUDED */ -- cgit v1.2.3