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/eglapi.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/egl/main/eglapi.h') diff --git a/src/egl/main/eglapi.h b/src/egl/main/eglapi.h index 066a416b3e3..e07970f8b1c 100644 --- a/src/egl/main/eglapi.h +++ b/src/egl/main/eglapi.h @@ -31,6 +31,11 @@ #ifndef EGLAPI_INCLUDED #define EGLAPI_INCLUDED + +#ifdef __cplusplus +extern "C" { +#endif + /** * A generic function ptr type */ @@ -209,4 +214,9 @@ struct _egl_api #endif }; + +#ifdef __cplusplus +} +#endif + #endif /* EGLAPI_INCLUDED */ -- cgit v1.2.3