mapi: remove Xlib/xcb include in gl_marshal.py
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 16 Mar 2017 11:05:23 +0000 (11:05 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 16 Mar 2017 13:12:26 +0000 (13:12 +0000)
commitc81c563fbbb06b6f1dd06ed62f252ed28d45be5a
treedfb6d76637604401abbcce1187158780d4bfa3f6
parent8a82f551cd89c33231fc4e825be34759549b1c87
mapi: remove Xlib/xcb include in gl_marshal.py

The only use of the header is to provide the _X_INLINE macro. We already
require (and provide where needed) 'inline', plus it's used in the file
already.

So replace the macro and drop the include. This fixes the build on
platforms which lack the header - from X-less Linuxes to Androids.

Fixes: 05dd4a1104e ("glapi: Generate GL API marshalling code from the XML.")
Reported-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100223
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/mapi/glapi/gen/gl_marshal.py