Mesa (master): glapi: Add extern "C" to glapi_priv.h

Alexander von Gluck IV kallisti5 at kemper.freedesktop.org
Wed May 13 19:26:42 UTC 2015


Module: Mesa
Branch: master
Commit: d27b114eaf75b1a61cc9600eed1b9cde352d8409
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d27b114eaf75b1a61cc9600eed1b9cde352d8409

Author: Alexander von Gluck IV <kallisti5 at unixzen.com>
Date:   Wed May 13 14:22:00 2015 -0400

glapi: Add extern "C" to glapi_priv.h

* The Haiku glapi has a C++ wrapper around the dispatch code.

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/mapi/glapi/glapi_priv.h |    8 ++++++++
 1 file changed, 8 insertions(+)

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




More information about the mesa-commit mailing list