[Mesa-dev] [PATCH 1/2] glapi: Add extern "C" to glapi_priv.h

Alexander von Gluck IV kallisti5 at unixzen.com
Wed May 13 11:25:22 PDT 2015


* The Haiku glapi has a C++ wrapper around
  the dispatch code.
---
 src/mapi/glapi/glapi_priv.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/mapi/glapi/glapi_priv.h b/src/mapi/glapi/glapi_priv.h
index 50f710e..337913a 100644
--- a/src/mapi/glapi/glapi_priv.h
+++ b/src/mapi/glapi/glapi_priv.h
@@ -49,6 +49,10 @@ typedef void *GLeglImageOES;
 #include "glapi/glapi.h"
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* getproc */
 
 extern void
@@ -106,4 +110,8 @@ get_entrypoint_address(unsigned int functionOffset);
 #define MAX_EXTENSION_FUNCS 256
 
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
-- 
1.7.1



More information about the mesa-dev mailing list