Mesa (glsl2): Make shader_api.h be C++ friendly
Ian Romanick
idr at kemper.freedesktop.org
Mon Jul 12 22:23:37 UTC 2010
Module: Mesa
Branch: glsl2
Commit: ffd7bb031e67f0d4e1eb36aa27261e8744e7b133
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ffd7bb031e67f0d4e1eb36aa27261e8744e7b133
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Wed Jul 7 11:03:21 2010 -0700
Make shader_api.h be C++ friendly
---
src/mesa/shader/shader_api.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/mesa/shader/shader_api.h b/src/mesa/shader/shader_api.h
index 557e910..22f582a 100644
--- a/src/mesa/shader/shader_api.h
+++ b/src/mesa/shader/shader_api.h
@@ -32,6 +32,9 @@
#include "main/mtypes.h"
#include "ir_to_mesa.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
/**
* Internal functions
*/
@@ -109,5 +112,8 @@ _mesa_validate_shader_program(GLcontext *ctx,
extern void
_mesa_init_glsl_driver_functions(struct dd_function_table *driver);
+#ifdef __cplusplus
+};
+#endif
#endif /* SHADER_API_H */
More information about the mesa-commit
mailing list