diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-06-13 07:53:22 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-06-13 07:53:22 +0200 |
commit | c7fb5c54b688c1817d0604320ac7f9bb3aa02c5c (patch) | |
tree | 36f61ed29ae8f7335ab9086aea6afaa50aeb2305 /src/windows.hpp | |
parent | b164023cca3f29c5eb371a8a0757c98ae4683ae4 (diff) |
Reverting previous commit that broke MSVC2010 build
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/windows.hpp')
-rw-r--r-- | src/windows.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/windows.hpp b/src/windows.hpp index fadee61..5133875 100644 --- a/src/windows.hpp +++ b/src/windows.hpp @@ -24,6 +24,7 @@ // The purpose of this header file is to turn on only the items actually needed // on the windows platform. +#define _WINSOCKAPI_ #ifndef NOMINMAX #define NOMINMAX // No min and max functions, these clash with C++. #endif @@ -49,10 +50,11 @@ #ifdef WINVER #undef WINVER #endif -// Default to Windows Server 2003, Windows XP #define WINVER 0x0501 #endif +#include <windows.h> + // MSVC++ 2005 on Win2000 does not define _WIN32_WINNT. #ifndef _WIN32_WINNT #define _WIN32_WINNT WINVER @@ -66,7 +68,6 @@ #include <winsock.h> #endif -#include <windows.h> #include <ws2tcpip.h> #include <ipexport.h> #include <process.h> |