st/mesa: fix comments, whitespace
[mesa.git] / src / mesa / state_tracker / st_cb_queryobj.h
index b8b578159d202527852468c25a78fa0ed382fe36..03f0be8372b400f75c6629232f3d5256f1380194 100644 (file)
@@ -29,6 +29,9 @@
 #define ST_CB_QUERYOBJ_H
 
 
+#include "main/mfeatures.h"
+#include "main/mtypes.h"
+
 /**
  * Subclass of gl_query_object
  */
@@ -50,9 +53,18 @@ st_query_object(struct gl_query_object *q)
 }
 
 
+#if FEATURE_queryobj
 
 extern void
 st_init_query_functions(struct dd_function_table *functions);
 
+#else
+
+static INLINE void
+st_init_query_functions(struct dd_function_table *functions)
+{
+}
+
+#endif /* FEATURE_queryobj */
 
 #endif