diff options
Diffstat (limited to 'libxcb/src/c_client.py')
-rwxr-xr-x[-rw-r--r--] | libxcb/src/c_client.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libxcb/src/c_client.py b/libxcb/src/c_client.py index 8a2900c62..e78fd7755 100644..100755 --- a/libxcb/src/c_client.py +++ b/libxcb/src/c_client.py @@ -286,6 +286,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)') @@ -304,7 +305,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) |