From d0abac22c3d963a0f02a41c7527fbb18071ea7c4 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Fri, 22 Mar 2013 13:29:55 -0700 Subject: glsl: Make some files safe to include from C Reviewed-by: Eric Anholt Reviewed-by: Kenneth Graunke --- src/glsl/ir_hierarchical_visitor.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/glsl/ir_hierarchical_visitor.h') diff --git a/src/glsl/ir_hierarchical_visitor.h b/src/glsl/ir_hierarchical_visitor.h index 143eb7c8878..1988ad0910b 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 */ -- cgit v1.2.3