Pol  Revision:cb584c9
Header_Windows.h
Go to the documentation of this file.
1 #ifndef POL_CORE_CLIB_HEADER_WINDOWS_H
2 #define POL_CORE_CLIB_HEADER_WINDOWS_H
3 
4 #if defined( WINDOWS )
5 
6 // activate some additional definitions within Windows includes
7 #ifndef WIN32_LEAN_AND_MEAN
8 #define WIN32_LEAN_AND_MEAN
9 #endif
10 
11 #pragma warning( push )
12 #pragma warning( disable : 4091 ) // unused typedef
13 
14 #define _WINSOCKAPI_
15 
16 #define _IMAGEHLP_
17 
18 #include <winsock2.h> // has to be included before Windows.h
19 #include <windows.h>
20 #include <ws2tcpip.h>
21 #include <process.h>
22 #include <psapi.h>
23 #include <eh.h>
24 #include <dbghelp.h>
25 #include <crtdbg.h>
26 #include <Shellapi.h>
27 
28 #pragma warning( pop ) // unused typedef in dbghelp.h
29 
30 //#define snprintf _snprintf
31 
32 #define MAXDRIVE _MAX_DRIVE
33 #define MAXDIR _MAX_DIR
34 #define MAXFILE _MAX_FNAME
35 #define MAXPATH _MAX_PATH
36 #define MAXEXT _MAX_EXT
37 
38 #define ssize_t SSIZE_T
39 
40 #endif // defined(Windows)
41 
42 #endif /* POL_CORE_CLIB_HEADER_WINDOWS_H */