aboutsummaryrefslogtreecommitdiff
path: root/libxcb/src/c_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'libxcb/src/c_client.py')
-rw-r--r--libxcb/src/c_client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libxcb/src/c_client.py b/libxcb/src/c_client.py
index a6f8edd73..411760264 100644
--- a/libxcb/src/c_client.py
+++ b/libxcb/src/c_client.py
@@ -185,6 +185,7 @@ def c_open(self):
_c('#include <stddef.h> /* for offsetof() */')
_c('#include "xcbext.h"')
_c('#include "%s.h"', _ns.header)
+ _c('#include <X11/Xtrans/Xtrans.h>')
_c('')
_c('#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member)')
@@ -203,7 +204,7 @@ def c_open(self):
_h('#define XCB_%s_MAJOR_VERSION %s', _ns.ext_name.upper(), _ns.major_version)
_h('#define XCB_%s_MINOR_VERSION %s', _ns.ext_name.upper(), _ns.minor_version)
_h(' ') #XXX
- _h('extern xcb_extension_t %s;', _ns.c_ext_global_name)
+ _h('XCB_EXTERN xcb_extension_t %s;', _ns.c_ext_global_name)
_c('')
_c('xcb_extension_t %s = { "%s", 0 };', _ns.c_ext_global_name, _ns.ext_xname)