mapi: don't include X11/Xlib-xcb.h on non PTHREAD platforms
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 16 Mar 2017 04:43:48 +0000 (15:43 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 16 Mar 2017 04:45:40 +0000 (15:45 +1100)
Should fix the last of the glthread build issues on windows.

src/mapi/glapi/gen/gl_marshal.py

index 576d42c12631d31187546d10831bb37597f6cf22..fe030901859735fef4cbb1b11e414edf72f9f6b6 100644 (file)
@@ -66,10 +66,10 @@ class PrintCode(gl_XML.gl_print_base):
 
     def printRealHeader(self):
         print header
-        print '#include <X11/Xlib-xcb.h>'
-        print
         print '#ifdef HAVE_PTHREAD'
         print
+        print '#include <X11/Xlib-xcb.h>'
+        print
         print 'static _X_INLINE int safe_mul(int a, int b)'
         print '{'
         print '    if (a < 0 || b < 0) return -1;'