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 <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Ian Romanick
2011-09-11 16:10:33 -05:00
parent 1375d67984
commit bbbb8345ab
6 changed files with 12 additions and 17 deletions
-2
View File
@@ -34,10 +34,8 @@
* from the GLSL IR.
*/
extern "C" {
#include "main/core.h" /* for struct gl_program */
#include "program/hash_table.h"
}
#include "ir.h"
#include "ir_visitor.h"
#include "glsl_types.h"