From 29aef6cce8114410ef3e82e46de6938d412a5fde Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 28 Jan 2013 22:56:35 -0800 Subject: 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 Reviewed-by: Ian Romanick --- src/mesa/main/renderbuffer.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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 */ -- cgit v1.2.3