From: Timothy Arceri Date: Thu, 16 Mar 2017 04:43:48 +0000 (+1100) Subject: mapi: don't include X11/Xlib-xcb.h on non PTHREAD platforms X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04a9ca2700742def92ff5dfdf487f4724c9c4441;p=mesa.git mapi: don't include X11/Xlib-xcb.h on non PTHREAD platforms Should fix the last of the glthread build issues on windows. --- 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 ' - print print '#ifdef HAVE_PTHREAD' print + print '#include ' + print print 'static _X_INLINE int safe_mul(int a, int b)' print '{' print ' if (a < 0 || b < 0) return -1;'