diff options
Diffstat (limited to 'libxcb/src/xcb_windefs.h')
-rw-r--r-- | libxcb/src/xcb_windefs.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/libxcb/src/xcb_windefs.h b/libxcb/src/xcb_windefs.h index d6c732940..dd92b7257 100644 --- a/libxcb/src/xcb_windefs.h +++ b/libxcb/src/xcb_windefs.h @@ -31,15 +31,28 @@ #define WINVER 0x0501 /* required for getaddrinfo/freeaddrinfo defined only for WinXP and above */ #endif +#define INCL_WINSOCK_API_TYPEDEFS 1 /* Needed for LPFN_GETPEERNAME */ + +#define FD_SETSIZE 1024 + +#include <X11/Xwinsock.h> #include <winsock2.h> #include <ws2tcpip.h> #include <windef.h> -struct iovec { - void *iov_base; /* Pointer to data. */ - int iov_len; /* Length of data. */ -}; +typedef unsigned char BYTE; typedef unsigned int in_addr_t; +#define HANDLE void * +typedef int pid_t; + +#define STDERR_FILENO 2 + +#ifdef LIBXCB_DLL +#define XCB_EXTERN __declspec(dllexport) extern +#else +#define XCB_EXTERN __declspec(dllimport) extern +#endif + #endif /* xcb_windefs.h */ |