summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-01-28 22:56:35 -0800
committerKenneth Graunke <[email protected]>2013-02-06 09:59:53 -0800
commit29aef6cce8114410ef3e82e46de6938d412a5fde (patch)
treedd6e110ef5634df65c15115e2a8d39eb781174a7
parent48b01e6a1003d997778df8d36f7004ab1f1be629 (diff)
mesa: Put extern "C" guards in renderbuffer.h.
I need to use this from C++ code. NOTE: This is a candidate for the 9.1 branch. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r--src/mesa/main/renderbuffer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/main/renderbuffer.h b/src/mesa/main/renderbuffer.h
index 5495ae15052..c450b33cb5b 100644
--- a/src/mesa/main/renderbuffer.h
+++ b/src/mesa/main/renderbuffer.h
@@ -29,6 +29,10 @@
#include "glheader.h"
#include "mtypes.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct gl_context;
struct gl_framebuffer;
struct gl_renderbuffer;
@@ -62,6 +66,8 @@ _mesa_reference_renderbuffer(struct gl_renderbuffer **ptr,
_mesa_reference_renderbuffer_(ptr, rb);
}
-
+#ifdef __cplusplus
+}
+#endif
#endif /* RENDERBUFFER_H */