summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-02-16 15:16:33 +0000
committerEmil Velikov <[email protected]>2017-02-21 18:28:55 +0000
commit1451bcb125720dd43ff16a4f3d9d834a39294976 (patch)
tree5b023f3ab1833397efadce06b6bb280a5ebffef5 /src
parente776e0385c7e7345705869ea89d4e209798b0c5a (diff)
mesa: annotate functions for C linkage
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 <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/program/symbol_table.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/program/symbol_table.h b/src/mesa/program/symbol_table.h
index cba47143ef2..6db2164fc21 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 */