From: Michael Haubenwallner Date: Fri, 13 Jun 2014 14:18:34 +0000 (+0200) Subject: bug#79986: include system headers early X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=125135452a554e89e49448e2c1ee6658324e1095;p=free-sw%2Fxcb%2Flibxcb bug#79986: include system headers early AIX does redefine 'events' to 'reqevents' eventually. To not have this cause compilation errors, need to include the local header files after any system header file. Reviewed-by: Alan Coopersmith Signed-off-by: Alan Coopersmith --- diff --git a/src/xcb_in.c b/src/xcb_in.c index 14b67ae..ad870c1 100644 --- a/src/xcb_in.c +++ b/src/xcb_in.c @@ -36,9 +36,6 @@ #include #include -#include "xcb.h" -#include "xcbext.h" -#include "xcbint.h" #if USE_POLL #include #endif @@ -51,6 +48,10 @@ #include "xcb_windefs.h" #endif /* _WIN32 */ +#include "xcb.h" +#include "xcbext.h" +#include "xcbint.h" + #define XCB_ERROR 0 #define XCB_REPLY 1 #define XCB_XGE_EVENT 35