From: Ian Romanick Date: Wed, 7 Jul 2010 18:03:21 +0000 (-0700) Subject: Make shader_api.h be C++ friendly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ffd7bb031e67f0d4e1eb36aa27261e8744e7b133;p=mesa.git Make shader_api.h be C++ friendly --- diff --git a/src/mesa/shader/shader_api.h b/src/mesa/shader/shader_api.h index 557e910595a..22f582a6a1d 100644 --- a/src/mesa/shader/shader_api.h +++ b/src/mesa/shader/shader_api.h @@ -32,6 +32,9 @@ #include "main/mtypes.h" #include "ir_to_mesa.h" +#ifdef __cplusplus +extern "C" { +#endif /** * Internal functions */ @@ -109,5 +112,8 @@ _mesa_validate_shader_program(GLcontext *ctx, extern void _mesa_init_glsl_driver_functions(struct dd_function_table *driver); +#ifdef __cplusplus +}; +#endif #endif /* SHADER_API_H */