xorg-libxcb/src
Jon TURNEY 87b7bf875e Fix build of xcb_auth.c with XDMCP on WIN32
Fix a redefinition problem which shows up when building for _WIN32 and
libXdmcp is installed, so HASXDMAUTH is enabled

It seems this is a special place in xcb as it uses other X11 library headers here

If HASXDMAUTH is defined, include the wrapped windows.h before any header which
includes it unwrapped, to avoid conflicts with types defined in X headers

We need to include config.h and check HASXDMAUTH to avoid an unconditional dependency
on x11proto headers

In file included from install/include/X11/Xdmcp.h:19:0,
                 from git/xcb/libxcb/src/xcb_auth.c:52:
install/include/X11/Xmd.h:120:14: error: conflicting types for 'INT32'
/usr/i686-pc-mingw32/sys-root/mingw/include/basetsd.h:54:13: note: previous declaration of 'INT32' was here
install/include/X11/Xmd.h:143:15: error: conflicting types for 'BOOL'
/usr/i686-pc-mingw32/sys-root/mingw/include/windef.h:234:17: note: previous declaration of 'BOOL' was here

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-01-28 12:44:17 -08:00
..
.gitignore Add xkb.* to gitignore 2010-09-10 15:54:56 -04:00
c_client.py Keep ALIGNOF definition out of the public namespace. 2011-08-24 08:52:02 -07:00
Makefile.am fix Windows build and installation 2011-01-20 20:46:04 -05:00
xcb.h Added more error states and removed global error_connection 2012-01-11 18:01:29 +01:00
xcb_auth.c Fix build of xcb_auth.c with XDMCP on WIN32 2012-01-28 12:44:17 -08:00
xcb_conn.c Use WSAStartup()/WSACleanup() on WIN32 2012-01-11 18:07:12 +01:00
xcb_ext.c Rename index to idx to avoid shadowing 2008-08-28 13:49:21 +02:00
xcb_in.c Added more error states and removed global error_connection 2012-01-11 18:01:29 +01:00
xcb_list.c The Great XCB Renaming 2006-09-23 12:22:22 -07:00
xcb_out.c Added more error states and removed global error_connection 2012-01-11 18:01:29 +01:00
xcb_util.c Use WSAStartup()/WSACleanup() on WIN32 2012-01-11 18:07:12 +01:00
xcb_windefs.h changes in xcb_windefs.h - the flag _XCB_WINDEFS_H replaces WINDEFS_H 2010-03-29 22:37:33 +05:30
xcb_xid.c kludgily hand-merged xid fixes 2009-03-28 14:59:01 +01:00
xcbext.h Merge branch 'master' of git://anongit.freedesktop.org/~peterh/libxcb 2010-12-23 13:04:40 -05:00
xcbint.h Added more error states and removed global error_connection 2012-01-11 18:01:29 +01:00