mesa: Add extern "C" guards to shaderimage.h to allow inclusion from C++ code.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 12 Nov 2014 01:47:13 +0000 (03:47 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 4 May 2015 14:44:15 +0000 (17:44 +0300)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/shaderimage.h

index 4aa859ca5cccaa73aa55c9c8a44b24415bb1310e..1c7d1e0e89409083fbf308ba888f465b6cb2799b 100644 (file)
 #include "glheader.h"
 #include "formats.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct gl_context;
 
 /**
@@ -58,4 +62,8 @@ _mesa_BindImageTextures(GLuint first, GLsizei count, const GLuint *textures);
 void GLAPIENTRY
 _mesa_MemoryBarrier(GLbitfield barriers);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif