Mesa (master): mesa: Add extern "C" guards to shaderimage.h to allow inclusion from C++ code.
Francisco Jerez
currojerez at kemper.freedesktop.org
Mon May 4 15:40:22 UTC 2015
Module: Mesa
Branch: master
Commit: 8424cafbac5c9747f0ee9ae55d8633e8172ee47f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8424cafbac5c9747f0ee9ae55d8633e8172ee47f
Author: Francisco Jerez <currojerez at riseup.net>
Date: Wed Nov 12 03:47:13 2014 +0200
mesa: Add extern "C" guards to shaderimage.h to allow inclusion from C++ code.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
src/mesa/main/shaderimage.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/mesa/main/shaderimage.h b/src/mesa/main/shaderimage.h
index 4aa859c..1c7d1e0 100644
--- a/src/mesa/main/shaderimage.h
+++ b/src/mesa/main/shaderimage.h
@@ -30,6 +30,10 @@
#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
More information about the mesa-commit
mailing list