X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fio-layer%2Fio-layer.h;h=e9096e25580ee216938e36854d2668b6325b4a45;hb=7945233379603accb278d271440b610e5c048e28;hp=a3cbe2abfee3419be56e504891aa2e749f9ed3cf;hpb=559ad5b34bc086b51af2e589b32ea2eae0f78820;p=mono.git diff --git a/mono/io-layer/io-layer.h b/mono/io-layer/io-layer.h index a3cbe2abfee..e9096e25580 100755 --- a/mono/io-layer/io-layer.h +++ b/mono/io-layer/io-layer.h @@ -11,6 +11,9 @@ #ifndef _MONO_IOLAYER_IOLAYER_H_ #define _MONO_IOLAYER_IOLAYER_H_ +#include +#include + #if defined(__WIN32__) || defined(_WIN32) /* Native win32 */ #define __USE_W32_SOCKETS @@ -25,8 +28,8 @@ #include #endif #include -#include -/* + + /* * Workaround for missing WSAPOLLFD typedef in mingw's winsock2.h that is required for mswsock.h below. * Remove once http://sourceforge.net/p/mingw/bugs/1980/ is fixed. */ @@ -37,7 +40,11 @@ typedef struct pollfd { short revents; } WSAPOLLFD, *PWSAPOLLFD, *LPWSAPOLLFD; #endif + +#if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #include +#endif + #else /* EVERYONE ELSE */ #include "mono/io-layer/wapi.h" #include "mono/io-layer/uglify.h"