summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.h
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2012-04-27 07:40:34 -0700
committerPaul Berry <[email protected]>2012-05-10 10:30:00 -0700
commit434fc8bde41f07687ad8941ceba03c4b3e0e75bb (patch)
tree4ef8732c92f158d0a9f4f2fe0955e01f95ab31d7 /src/mesa/main/teximage.h
parentb0bb125736fd29dbad6cfa8d4de0c44eaf5e28ad (diff)
intel: Add extern "C" declarations to headers
These declarations are necessary to allow C++ code to call C code without causing unresolved symbols (which would make the driver fail to load). Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.h')
-rw-r--r--src/mesa/main/teximage.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h
index e2bdaca0150..66a0c88950b 100644
--- a/src/mesa/main/teximage.h
+++ b/src/mesa/main/teximage.h
@@ -35,6 +35,9 @@
#include "mtypes.h"
#include "formats.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
/** Is the given value one of the 6 cube faces? */
static inline GLboolean
@@ -287,4 +290,8 @@ _mesa_TexBuffer(GLenum target, GLenum internalFormat, GLuint buffer);
/*@}*/
+#ifdef __cplusplus
+}
+#endif
+
#endif