[Mesa-dev] [PATCH 1/5] gallium/aux: Add needed extern "C" wrappers
Alexander von Gluck IV
kallisti5 at unixzen.com
Thu May 14 15:39:46 PDT 2015
---
src/gallium/auxiliary/os/os_thread.h | 7 +++++++
src/gallium/auxiliary/postprocess/postprocess.h | 9 +++++++++
src/gallium/auxiliary/util/u_tests.h | 8 ++++++++
3 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h
index e9da895..e2ae1f9 100644
--- a/src/gallium/auxiliary/os/os_thread.h
+++ b/src/gallium/auxiliary/os/os_thread.h
@@ -47,6 +47,10 @@
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* pipe_thread
*/
typedef thrd_t pipe_thread;
@@ -307,5 +311,8 @@ pipe_tsd_set(pipe_tsd *tsd, void *value)
}
+#ifdef __cplusplus
+}
+#endif
#endif /* OS_THREAD_H_ */
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
--
1.7.1
More information about the mesa-dev
mailing list