summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_public.h
diff options
context:
space:
mode:
authorMark Janes <[email protected]>2015-03-06 13:36:55 -0800
committerIlia Mirkin <[email protected]>2015-03-06 22:08:44 -0500
commitb28c037d64ac7cee7e2c7d9d33b128d62aa4df8a (patch)
treedfec2706d6d8b12c7077fc8e484d27ae4239bccf /src/gallium/drivers/r300/r300_public.h
parentc4b91a1f5c7ef667708a6b8d734707bbba851437 (diff)
r300g: Fix build, invalid extern "C" around header inclusion.
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 <[email protected]> Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/r300_public.h')
-rw-r--r--src/gallium/drivers/r300/r300_public.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_public.h b/src/gallium/drivers/r300/r300_public.h
index b6059203ff1..57a69cb7c9f 100644
--- a/src/gallium/drivers/r300/r300_public.h
+++ b/src/gallium/drivers/r300/r300_public.h
@@ -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