Merge pull request #1253 from esdrubal/datetimeiso8601
[mono.git] / mono / io-layer / io-layer.h
1 /*
2  * io-layer.h: Include the right files depending on platform.  This
3  * file is the only entry point into the io-layer library.
4  *
5  * Author:
6  *      Dick Porter (dick@ximian.com)
7  *
8  * (C) 2002 Ximian, Inc.
9  */
10
11 #ifndef _MONO_IOLAYER_IOLAYER_H_
12 #define _MONO_IOLAYER_IOLAYER_H_
13
14 #if defined(__WIN32__) || defined(_WIN32)
15 /* Native win32 */
16 #define __USE_W32_SOCKETS
17 #if (_WIN32_WINNT < 0x0502)
18 /* GetProcessId is available on Windows XP SP1 and later.
19  * Windows SDK declares it unconditionally.
20  * MinGW declares for Windows XP and later.
21  * Declare as __GetProcessId for unsupported targets. */
22 #define GetProcessId __GetProcessId
23 #endif
24 #include <windows.h>
25 #include <winbase.h>
26 #include <winsock2.h>
27 /*
28  * The mingw version says:
29  * /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  */
31 #ifdef _MSC_VER
32 #include <ws2tcpip.h>
33 #endif
34 #include <psapi.h>
35 #include <shlobj.h>
36 #include <mswsock.h>
37 #if (_WIN32_WINNT < 0x0502)
38 #undef GetProcessId
39 #endif
40 #else   /* EVERYONE ELSE */
41 #include "mono/io-layer/wapi.h"
42 #include "mono/io-layer/uglify.h"
43 #endif /* HOST_WIN32 */
44
45 #ifdef __native_client__
46 #include "mono/metadata/nacl-stub.h"
47 #endif
48
49 #endif /* _MONO_IOLAYER_IOLAYER_H_ */