gallium/drivers: Add extern "C" wrappers to public entry
authorAlexander von Gluck IV <kallisti5@unixzen.com>
Thu, 14 May 2015 22:20:17 +0000 (17:20 -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/drivers/llvmpipe/lp_public.h
src/gallium/drivers/rbug/rbug_public.h
src/gallium/drivers/softpipe/sp_public.h

index ec6b660b48ebed86e81db92be9fbe9441254ba14..27ab1baefbbb5691babdedb270b22b4f7be529d0 100644 (file)
@@ -1,10 +1,18 @@
 #ifndef LP_PUBLIC_H
 #define LP_PUBLIC_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct pipe_screen;
 struct sw_winsys;
 
 struct pipe_screen *
 llvmpipe_create_screen(struct sw_winsys *winsys);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
index b66740b49cde652fe1bfe607f136dfabbb3e2ded..83f9c94e31ff8f2d55cf08438edfb11ae918e25e 100644 (file)
 #ifndef RBUG_PUBLIC_H
 #define RBUG_PUBLIC_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct pipe_screen;
 struct pipe_context;
 
@@ -37,4 +41,8 @@ rbug_screen_create(struct pipe_screen *screen);
 boolean
 rbug_enabled(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* RBUG_PUBLIC_H */
index 62d0903d87a3bdfcf604dc4df1eefde306ed0e78..88a9b5e6643295a781ce81be377b8c13720678d8 100644 (file)
@@ -1,10 +1,18 @@
 #ifndef SP_PUBLIC_H
 #define SP_PUBLIC_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct pipe_screen;
 struct sw_winsys;
 
 struct pipe_screen *
 softpipe_create_screen(struct sw_winsys *winsys);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif