summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-03-16 15:43:48 +1100
committerTimothy Arceri <[email protected]>2017-03-16 15:45:40 +1100
commit04a9ca2700742def92ff5dfdf487f4724c9c4441 (patch)
tree4ad434599d0347a38960dedb8d670b4eda8d4a9a /src/mapi
parent4a32d473fd6c10451fca813e462abfbe6c876048 (diff)
mapi: don't include X11/Xlib-xcb.h on non PTHREAD platforms
Should fix the last of the glthread build issues on windows.
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/gen/gl_marshal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapi/glapi/gen/gl_marshal.py b/src/mapi/glapi/gen/gl_marshal.py
index 576d42c1263..fe030901859 100644
--- a/src/mapi/glapi/gen/gl_marshal.py
+++ b/src/mapi/glapi/gen/gl_marshal.py
@@ -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;'