[Mesa-dev] [PATCH 03/13] mesa: annotate functions for C linkage

Emil Velikov emil.l.velikov at gmail.com
Thu Feb 16 15:16:33 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

i.e. add extern C {} in program/symbol_table.h

It will allow us remove a workaround we have elsewhere in the code.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/mesa/program/symbol_table.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/mesa/program/symbol_table.h b/src/mesa/program/symbol_table.h
index cba47143ef..6db2164fc2 100644
--- a/src/mesa/program/symbol_table.h
+++ b/src/mesa/program/symbol_table.h
@@ -23,6 +23,10 @@
 #ifndef MESA_SYMBOL_TABLE_H
 #define MESA_SYMBOL_TABLE_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct _mesa_symbol_table;
 
 extern void _mesa_symbol_table_push_scope(struct _mesa_symbol_table *table);
@@ -51,4 +55,8 @@ extern struct _mesa_symbol_table *_mesa_symbol_table_ctor(void);
 
 extern void _mesa_symbol_table_dtor(struct _mesa_symbol_table *);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* MESA_SYMBOL_TABLE_H */
-- 
2.11.0



More information about the mesa-dev mailing list