aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/main/api_loopback.h
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/mesa/main/api_loopback.h')
-rw-r--r--mesalib/src/mesa/main/api_loopback.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/mesalib/src/mesa/main/api_loopback.h b/mesalib/src/mesa/main/api_loopback.h
index 6f85bbc1d..3140eb515 100644
--- a/mesalib/src/mesa/main/api_loopback.h
+++ b/mesalib/src/mesa/main/api_loopback.h
@@ -27,11 +27,19 @@
#ifndef API_LOOPBACK_H
#define API_LOOPBACK_H
-#include "glheader.h"
+#include "main/mtypes.h"
-
-struct _glapi_table;
+#if FEATURE_beginend
extern void _mesa_loopback_init_api_table( struct _glapi_table *dest );
-#endif
+#else /* FEATURE_beginend */
+
+static INLINE void
+_mesa_loopback_init_api_table( struct _glapi_table *dest )
+{
+}
+
+#endif /* FEATURE_beginend */
+
+#endif /* API_LOOPBACK_H */