summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_hierarchical_visitor.h
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2013-03-22 13:29:55 -0700
committerEric Anholt <eric@anholt.net>2013-06-21 10:04:28 -0700
commitd0abac22c3d963a0f02a41c7527fbb18071ea7c4 (patch)
tree946d740d15d4f2c449331db1fdd178fdd92be0fe /src/glsl/ir_hierarchical_visitor.h
parent2d7e837716f3b91c694acbc6a986a0b27fe19f2d (diff)
downloadexternal_mesa3d-d0abac22c3d963a0f02a41c7527fbb18071ea7c4.zip
external_mesa3d-d0abac22c3d963a0f02a41c7527fbb18071ea7c4.tar.gz
external_mesa3d-d0abac22c3d963a0f02a41c7527fbb18071ea7c4.tar.bz2
glsl: Make some files safe to include from C
Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/glsl/ir_hierarchical_visitor.h')
-rw-r--r--src/glsl/ir_hierarchical_visitor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ir_hierarchical_visitor.h b/src/glsl/ir_hierarchical_visitor.h
index 143eb7c..1988ad0 100644
--- a/src/glsl/ir_hierarchical_visitor.h
+++ b/src/glsl/ir_hierarchical_visitor.h
@@ -36,6 +36,7 @@ enum ir_visitor_status {
};
+#ifdef __cplusplus
/**
* Base class of hierarchical visitors of IR instruction trees
*
@@ -181,5 +182,6 @@ void visit_tree(ir_instruction *ir,
ir_visitor_status visit_list_elements(ir_hierarchical_visitor *v, exec_list *l,
bool statement_list = true);
+#endif /* __cplusplus */
#endif /* IR_HIERARCHICAL_VISITOR_H */