X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fio-layer%2Fio-layer.h;h=394799bc86cf25f1cae52d9f289f1f4073541dc2;hb=09456b827bab4a89758be84c464abfcbf59f7ce7;hp=72d24f45c2bb33bf135479df44fab9e15bd22647;hpb=9869ae24b88761ab261c4311e24f7383b4af3f02;p=mono.git diff --git a/mono/io-layer/io-layer.h b/mono/io-layer/io-layer.h old mode 100644 new mode 100755 index 72d24f45c2b..394799bc86c --- a/mono/io-layer/io-layer.h +++ b/mono/io-layer/io-layer.h @@ -11,20 +11,39 @@ #ifndef _MONO_IOLAYER_IOLAYER_H_ #define _MONO_IOLAYER_IOLAYER_H_ -#if defined(__WIN32__) +#if defined(__WIN32__) || defined(_WIN32) /* Native win32 */ -#define UNICODE -#define _UNICODE #define __USE_W32_SOCKETS +#if (_WIN32_WINNT < 0x0502) +/* GetProcessId is available on Windows XP SP1 and later. + * Windows SDK declares it unconditionally. + * MinGW declares for Windows XP and later. + * Declare as __GetProcessId for unsupported targets. */ +#define GetProcessId __GetProcessId +#endif #include #include #include +/* + * The mingw version says: + * /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." + */ +#ifdef _MSC_VER #include +#endif #include #include +#include +#if (_WIN32_WINNT < 0x0502) +#undef GetProcessId +#endif #else /* EVERYONE ELSE */ #include "mono/io-layer/wapi.h" #include "mono/io-layer/uglify.h" -#endif /* PLATFORM_WIN32 */ +#endif /* HOST_WIN32 */ + +#ifdef __native_client__ +#include "mono/metadata/nacl-stub.h" +#endif #endif /* _MONO_IOLAYER_IOLAYER_H_ */