Mesa (master): gallium/aux: Add needed extern "C" wrappers
Alexander von Gluck IV
kallisti5 at kemper.freedesktop.org
Fri May 15 17:56:35 UTC 2015
Module: Mesa
Branch: master
Commit: 40a8b2f92a8aef25199324046114023c4ed3d772
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=40a8b2f92a8aef25199324046114023c4ed3d772
Author: Alexander von Gluck IV <kallisti5 at unixzen.com>
Date: Thu May 14 17:19:44 2015 -0500
gallium/aux: Add needed extern "C" wrappers
Reviewed-by: Brian Paul <brianp at vmware.com>
---
src/gallium/auxiliary/postprocess/postprocess.h | 9 +++++++++
src/gallium/auxiliary/util/u_tests.h | 8 ++++++++
2 files changed, 17 insertions(+)
diff --git a/src/gallium/auxiliary/postprocess/postprocess.h b/src/gallium/auxiliary/postprocess/postprocess.h
index c72f2c4..9b9f981 100644
--- a/src/gallium/auxiliary/postprocess/postprocess.h
+++ b/src/gallium/auxiliary/postprocess/postprocess.h
@@ -30,6 +30,10 @@
#include "pipe/p_state.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct cso_context;
struct pp_queue_t; /* Forward definition */
@@ -85,4 +89,9 @@ void pp_celshade_free(struct pp_queue_t *, unsigned int);
void pp_nocolor_free(struct pp_queue_t *, unsigned int);
void pp_jimenezmlaa_free(struct pp_queue_t *, unsigned int);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/src/gallium/auxiliary/util/u_tests.h b/src/gallium/auxiliary/util/u_tests.h
index 49ae54f..106b0a0 100644
--- a/src/gallium/auxiliary/util/u_tests.h
+++ b/src/gallium/auxiliary/util/u_tests.h
@@ -30,8 +30,16 @@
#include "pipe/p_compiler.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct pipe_screen;
void util_run_tests(struct pipe_screen *screen);
+#ifdef __cplusplus
+}
+#endif
+
#endif
More information about the mesa-commit
mailing list