mesa: Put extern "C" guards in renderbuffer.h.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Jan 2013 06:56:35 +0000 (22:56 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 6 Feb 2013 17:59:53 +0000 (09:59 -0800)
I need to use this from C++ code.

NOTE: This is a candidate for the 9.1 branch.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/renderbuffer.h

index 5495ae15052a891ad380e0437e179f71ddd7bf76..c450b33cb5bb64e9f7e844c1c4e56acf3363879a 100644 (file)
 #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 */