gallium/auxiliary: Extern "c" fixes.
authorAlexander von Gluck IV <kallisti5@unixzen.com>
Fri, 27 Jul 2018 20:09:37 +0000 (20:09 +0000)
committerAlexander von Gluck IV <kallisti5@unixzen.com>
Fri, 27 Jul 2018 21:19:12 +0000 (16:19 -0500)
Used by C++ code such as Haiku's renderer.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/driver_ddebug/dd_public.h
src/gallium/auxiliary/driver_noop/noop_public.h
src/gallium/auxiliary/target-helpers/inline_debug_helper.h

index e6607655753ee8867dab296737d9fef8d575fa45..31c139d6a1707c6cec051c3667580461757b6e04 100644 (file)
 
 struct pipe_screen;
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct pipe_screen *
 ddebug_screen_create(struct pipe_screen *screen);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* DD_PUBLIC_H_ */
index 180ea597fab10bc6c4002f00584dd9bb617161ca..46a7f4084f85f68919d3d1128dca92acc3a34fa0 100644 (file)
 #ifndef NOOP_PUBLIC_H
 #define NOOP_PUBLIC_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct pipe_screen;
 struct pipe_screen *noop_screen_create(struct pipe_screen *screen);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
index 66d46de888b954233b285cba5bbadce5a5da9f5e..ef22cac2c3190a0b156c55d81baf36e29cfc11c9 100644 (file)
 #include "driver_rbug/rbug_public.h"
 #include "driver_noop/noop_public.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * TODO: Audit the following *screen_create() - all of
  * them should return the original screen on failuire.
@@ -35,3 +39,7 @@ debug_screen_wrap(struct pipe_screen *screen)
 }
 
 #endif
+
+#ifdef __cplusplus
+}
+#endif