From: Alexander von Gluck IV Date: Wed, 13 May 2015 18:22:00 +0000 (-0400) Subject: glapi: Add extern "C" to glapi_priv.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d27b114eaf75b1a61cc9600eed1b9cde352d8409;p=mesa.git glapi: Add extern "C" to glapi_priv.h * The Haiku glapi has a C++ wrapper around the dispatch code. Reviewed-by: Brian Paul --- diff --git a/src/mapi/glapi/glapi_priv.h b/src/mapi/glapi/glapi_priv.h index 50f710edc8a..337913acc71 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