Mesa (master): st/mesa: add extern "C" to st_program.h

Brian Paul brianp at kemper.freedesktop.org
Tue Dec 16 15:51:40 UTC 2014


Module: Mesa
Branch: master
Commit: d260348130853dd2aa7d87e03cdcd25e8ad39676
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d260348130853dd2aa7d87e03cdcd25e8ad39676

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Dec 15 16:46:46 2014 -0700

st/mesa: add extern "C" to st_program.h

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

---

 src/mesa/state_tracker/st_program.h |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/mesa/state_tracker/st_program.h b/src/mesa/state_tracker/st_program.h
index cf1b40a..870d0d5 100644
--- a/src/mesa/state_tracker/st_program.h
+++ b/src/mesa/state_tracker/st_program.h
@@ -41,6 +41,11 @@
 #include "st_glsl_to_tgsi.h"
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /** Fragment program variant key */
 struct st_fp_variant_key
 {
@@ -347,4 +352,8 @@ extern void
 st_print_current_vertex_program(void);
 
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif




More information about the mesa-commit mailing list