From ad65825098f2029c3853e0f1dbedd045acc05870 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Wed, 20 Mar 2013 11:35:34 -0700 Subject: mesa/program: Make prog_instruction.h and program.h safe to include from C++. Reviewed-by: Ian Romanick Reviewed-by: Kenneth Graunke Reviewed-by: Matt Turner --- src/mesa/program/prog_instruction.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mesa/program/prog_instruction.h') diff --git a/src/mesa/program/prog_instruction.h b/src/mesa/program/prog_instruction.h index be221819f15..b9604e50d92 100644 --- a/src/mesa/program/prog_instruction.h +++ b/src/mesa/program/prog_instruction.h @@ -386,6 +386,10 @@ struct prog_instruction }; +#ifdef __cplusplus +extern "C" { +#endif + extern void _mesa_init_instructions(struct prog_instruction *inst, GLuint count); @@ -419,4 +423,8 @@ extern const char * _mesa_opcode_string(gl_inst_opcode opcode); +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* PROG_INSTRUCTION_H */ -- cgit v1.2.3