mesa: annotate functions for C linkage
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 16 Feb 2017 15:16:33 +0000 (15:16 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 21 Feb 2017 18:28:55 +0000 (18:28 +0000)
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@collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/program/symbol_table.h

index cba47143ef2db3bf85bff61fc10715fb4ba6d7ec..6db2164fc21af09e083d1ab4e25035be267a39cd 100644 (file)
 #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 */