From: Kenneth Graunke Date: Tue, 29 Jan 2013 06:56:35 +0000 (-0800) Subject: mesa: Put extern "C" guards in renderbuffer.h. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29aef6cce8114410ef3e82e46de6938d412a5fde;p=mesa.git 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 --- 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 */