summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/dispatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/dispatch.h')
-rw-r--r--src/mesa/main/dispatch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/dispatch.h b/src/mesa/main/dispatch.h
index ea8e0328618..19eabb85c81 100644
--- a/src/mesa/main/dispatch.h
+++ b/src/mesa/main/dispatch.h
@@ -40,7 +40,11 @@
* named function in the specified dispatch table.
*/
+/* GLXEXT is defined when building the GLX extension in the xserver.
+ */
+#if !defined(GLXEXT)
#include "main/mfeatures.h"
+#endif
#define CALL_by_offset(disp, cast, offset, parameters) \
(*(cast (GET_by_offset(disp, offset)))) parameters