summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_clone.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2011-09-11 16:10:33 -0500
committerIan Romanick <ian.d.romanick@intel.com>2011-10-18 17:26:38 -0700
commitbbbb8345ab9df2d634dc2a34d257ee2cbf930292 (patch)
treecd7579458a88a83b4e9d6a77e463f9ab085c514d /src/glsl/ir_clone.cpp
parent1375d67984f0cd01efa7b256864f21dc4ff75982 (diff)
downloadexternal_mesa3d-bbbb8345ab9df2d634dc2a34d257ee2cbf930292.zip
external_mesa3d-bbbb8345ab9df2d634dc2a34d257ee2cbf930292.tar.gz
external_mesa3d-bbbb8345ab9df2d634dc2a34d257ee2cbf930292.tar.bz2
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>
Diffstat (limited to 'src/glsl/ir_clone.cpp')
-rw-r--r--src/glsl/ir_clone.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp
index c1befa9..9adf470 100644
--- a/src/glsl/ir_clone.cpp
+++ b/src/glsl/ir_clone.cpp
@@ -25,9 +25,7 @@
#include "main/compiler.h"
#include "ir.h"
#include "glsl_types.h"
-extern "C" {
#include "program/hash_table.h"
-}
/**
* Duplicate an IR variable