diff options
author | Ian Romanick <[email protected]> | 2011-09-11 16:10:33 -0500 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2011-10-18 17:26:38 -0700 |
commit | bbbb8345ab9df2d634dc2a34d257ee2cbf930292 (patch) | |
tree | cd7579458a88a83b4e9d6a77e463f9ab085c514d /src/mesa/program/ir_to_mesa.h | |
parent | 1375d67984f0cd01efa7b256864f21dc4ff75982 (diff) |
ir_to_mesa: Move some things outside the 'extern "C"' blocks
Having a few of these includes or forward declarations inside the
'extern "C"' block can cause problems later. Specifically, it
prevents C++ linkage functions from being added to ir_to_mesa.h and
makes G++ angry if 'struct foo' is seen both inside and outside an
'extern "C"'.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/program/ir_to_mesa.h')
-rw-r--r-- | src/mesa/program/ir_to_mesa.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/program/ir_to_mesa.h b/src/mesa/program/ir_to_mesa.h index 7410e149735..5649282f03f 100644 --- a/src/mesa/program/ir_to_mesa.h +++ b/src/mesa/program/ir_to_mesa.h @@ -21,16 +21,16 @@ * DEALINGS IN THE SOFTWARE. */ -#ifdef __cplusplus -extern "C" { -#endif - #include "main/glheader.h" struct gl_context; struct gl_shader; struct gl_shader_program; +#ifdef __cplusplus +extern "C" { +#endif + void _mesa_glsl_compile_shader(struct gl_context *ctx, struct gl_shader *sh); void _mesa_glsl_link_shader(struct gl_context *ctx, struct gl_shader_program *prog); GLboolean _mesa_ir_compile_shader(struct gl_context *ctx, struct gl_shader *shader); |