glapi/glx: Generate dispatch.h so that the xserver can use it
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 5 Dec 2011 23:24:05 +0000 (15:24 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 14 Dec 2011 00:07:17 +0000 (16:07 -0800)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
src/mapi/glapi/gen/gl_table.py

index f6182b60bc365ff885ff5f117a8416bfa232d474..7f3b91513fe7fed7f953e330c0387ea72837999d 100644 (file)
@@ -92,7 +92,11 @@ class PrintRemapTable(gl_XML.gl_print_base):
  * 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
 """
                return