i965: Move intel_context::vtbl to brw_context.
[mesa.git] / src / glsl / ir_visitor.h
index 4a00155be2f9afd9bce58dae8277046f3ec27641..bd47ef7d5faa946743f241f9cd3a000ecec3ec54 100644 (file)
@@ -26,6 +26,7 @@
 #ifndef IR_VISITOR_H
 #define IR_VISITOR_H
 
+#ifdef __cplusplus
 /**
  * Abstract base class of visitors of IR instruction trees
  */
@@ -81,5 +82,6 @@ public:
    virtual void visit(class ir_constant *) {}
    virtual void visit(class ir_call *) {}
 };
+#endif /* __cplusplus */
 
 #endif /* IR_VISITOR_H */