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:
@@ -24,10 +24,7 @@
|
||||
#include "ir_print_visitor.h"
|
||||
#include "glsl_types.h"
|
||||
#include "glsl_parser_extras.h"
|
||||
|
||||
extern "C" {
|
||||
#include "program/hash_table.h"
|
||||
}
|
||||
|
||||
static void print_type(const glsl_type *t);
|
||||
|
||||
|
Reference in New Issue
Block a user