Mesa (master): st/mesa: add extern "C" to st_context.h
Brian Paul
brianp at kemper.freedesktop.org
Tue Dec 16 15:51:40 UTC 2014
Module: Mesa
Branch: master
Commit: 44c8957cfe7a77f53dbf21dcad8f43e20b4475ab
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=44c8957cfe7a77f53dbf21dcad8f43e20b4475ab
Author: Brian Paul <brianp at vmware.com>
Date: Mon Dec 15 16:49:54 2014 -0700
st/mesa: add extern "C" to st_context.h
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
---
src/mesa/state_tracker/st_context.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h
index 15f9df4..20d5678 100644
--- a/src/mesa/state_tracker/st_context.h
+++ b/src/mesa/state_tracker/st_context.h
@@ -33,6 +33,12 @@
#include "state_tracker/st_api.h"
#include "main/fbobject.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
struct bitmap_cache;
struct dd_function_table;
struct draw_context;
@@ -278,4 +284,8 @@ extern void
st_destroy_context(struct st_context *st);
+#ifdef __cplusplus
+}
+#endif
+
#endif
More information about the mesa-commit
mailing list