2 * io-layer.h: Include the right files depending on platform. This
3 * file is the only entry point into the io-layer library.
6 * Dick Porter (dick@ximian.com)
8 * (C) 2002 Ximian, Inc.
11 #ifndef _MONO_IOLAYER_IOLAYER_H_
12 #define _MONO_IOLAYER_IOLAYER_H_
17 #if defined(__WIN32__) || defined(_WIN32)
19 #define __USE_W32_SOCKETS
24 * The mingw version says:
25 * /usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:38:2: error: #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
33 * Workaround for missing WSAPOLLFD typedef in mingw's winsock2.h that is required for mswsock.h below.
34 * Remove once http://sourceforge.net/p/mingw/bugs/1980/ is fixed.
36 #if defined(__MINGW_MAJOR_VERSION) && __MINGW_MAJOR_VERSION == 4
37 typedef struct pollfd {
41 } WSAPOLLFD, *PWSAPOLLFD, *LPWSAPOLLFD;
44 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
48 #else /* EVERYONE ELSE */
49 #include "mono/io-layer/wapi.h"
50 #endif /* HOST_WIN32 */
52 #ifdef __native_client__
53 #include "mono/metadata/nacl-stub.h"
56 #endif /* _MONO_IOLAYER_IOLAYER_H_ */