gallium/aux: Add needed extern "C" wrappers
authorAlexander von Gluck IV <kallisti5@unixzen.com>
Thu, 14 May 2015 22:19:44 +0000 (17:19 -0500)
committerAlexander von Gluck IV <kallisti5@unixzen.com>
Fri, 15 May 2015 17:55:59 +0000 (13:55 -0400)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/postprocess/postprocess.h
src/gallium/auxiliary/util/u_tests.h

index c72f2c4..9b9f981 100644 (file)
 
 #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
index 49ae54f..106b0a0 100644 (file)
 
 #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