r300g: Fix build, invalid extern "C" around header inclusion.
authorMark Janes <mark.a.janes@intel.com>
Fri, 6 Mar 2015 21:36:55 +0000 (13:36 -0800)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 7 Mar 2015 03:08:44 +0000 (22:08 -0500)
A previous patch to fix header inclusion within extern "C" neglected
to fix the occurences of this pattern in r300 files.

When the helper to detect this issue was pushed to master, it broke
the build for the r300 driver.  This patch fixes the r300 build.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89477
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/r300/r300_public.h

index b6059203ff18c9adf9b841788e5cc22f1213f9f9..57a69cb7c9ffbb1529cde7bdf7dd882f7254cc07 100644 (file)
@@ -2,8 +2,16 @@
 #ifndef R300_PUBLIC_H
 #define R300_PUBLIC_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct radeon_winsys;
 
 struct pipe_screen* r300_screen_create(struct radeon_winsys *rws);
 
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
 #endif