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_
14 #if defined(__WIN32__) || defined(_WIN32)
16 #define __USE_W32_SOCKETS
21 * The mingw version says:
22 * /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."
30 * Workaround for missing WSAPOLLFD typedef in mingw's winsock2.h that is required for mswsock.h below.
31 * Remove once http://sourceforge.net/p/mingw/bugs/1980/ is fixed.
33 #if defined(__MINGW_MAJOR_VERSION) && __MINGW_MAJOR_VERSION == 4
34 typedef struct pollfd {
38 } WSAPOLLFD, *PWSAPOLLFD, *LPWSAPOLLFD;
41 #else /* EVERYONE ELSE */
42 #include "mono/io-layer/wapi.h"
43 #include "mono/io-layer/uglify.h"
44 #endif /* HOST_WIN32 */
46 #ifdef __native_client__
47 #include "mono/metadata/nacl-stub.h"
50 #endif /* _MONO_IOLAYER_IOLAYER_H_ */