libxcb/src
Ryan Pavlik 31b57676e8 Use WSAStartup()/WSACleanup() on WIN32
The alternative is to use these in every WIN32 application which uses xcb. Doing
it this way should be safe, as, according to MSDN, "There must be a call to
WSACleanup for each successful call to WSAStartup. Only the final WSACleanup
function call performs the actual cleanup. The preceding calls simply decrement
an internal reference count"

(We should probably also include ws2_32 in Libs.private for libxcb, as anything
which links with libxcb will also need that, but there seems to be some pkg-config
issues to resolve first...)

v2: Check for errors so WSAStartup()/WSACleanup() uses are balanced
v3: Use same indentation style as surrounding code

Reviewed-by: Peter Harris <pharris@opentext.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2012-01-11 18:07:12 +01:00
..
.gitignore Add xkb.* to gitignore 2010-09-10 15:54:56 -04:00
Makefile.am fix Windows build and installation 2011-01-20 20:46:04 -05:00
c_client.py Keep ALIGNOF definition out of the public namespace. 2011-08-24 08:52:02 -07:00
xcb.h Added more error states and removed global error_connection 2012-01-11 18:01:29 +01:00
xcb_auth.c Fix include order with Xdmcp on WIN32 2012-01-11 18:03:31 +01: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