aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/ir_hierarchical_visitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/glsl/ir_hierarchical_visitor.h')
-rw-r--r--mesalib/src/glsl/ir_hierarchical_visitor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesalib/src/glsl/ir_hierarchical_visitor.h b/mesalib/src/glsl/ir_hierarchical_visitor.h
index 143eb7c88..1988ad091 100644
--- a/mesalib/src/glsl/ir_hierarchical_visitor.h
+++ b/mesalib/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 */