Set _WIN32_WINNT to windows 7
[novacoin.git] / src / compat.h
index a4c6489..d0e8114 100644 (file)
@@ -6,7 +6,7 @@
 #define _BITCOIN_COMPAT_H 1
 
 #ifdef WIN32
-#define _WIN32_WINNT 0x0501
+#define _WIN32_WINNT 0x0601
 #define WIN32_LEAN_AND_MEAN 1
 #ifndef NOMINMAX
 #define NOMINMAX
@@ -17,7 +17,6 @@
 #endif
 #define FD_SETSIZE 1024 // max number of fds in fd_set
 #endif
-#include <winsock2.h>
 #include <mswsock.h>
 #include <ws2tcpip.h>
 #else
@@ -56,4 +55,4 @@ typedef int socklen_t;
 #define SOCKET_ERROR        -1
 #endif
 
-#endif
\ No newline at end of file
+#endif