summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_cb_rasterpos.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/state_tracker/st_cb_rasterpos.h')
-rw-r--r--src/mesa/state_tracker/st_cb_rasterpos.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_rasterpos.h b/src/mesa/state_tracker/st_cb_rasterpos.h
index 2b992e1405..d2ed7297f1 100644
--- a/src/mesa/state_tracker/st_cb_rasterpos.h
+++ b/src/mesa/state_tracker/st_cb_rasterpos.h
@@ -28,6 +28,20 @@
#ifndef ST_CB_RASTERPOS_H
#define ST_CB_RASTERPOS_H
+
+#include "main/mtypes.h"
+
+#if FEATURE_rastpos
+
extern void st_init_rasterpos_functions(struct dd_function_table *functions);
-#endif
+#else
+
+static INLINE void
+st_init_rasterpos_functions(struct dd_function_table *functions)
+{
+}
+
+#endif /* FEATURE_rastpos */
+
+#endif /* ST_CB_RASTERPOS_H */