Set _WIN32_WINNT to windows 7
authorsvost <ya.nowa@yandex.ru>
Sun, 2 Jan 2022 12:49:09 +0000 (15:49 +0300)
committersvost <ya.nowa@yandex.ru>
Sun, 2 Jan 2022 12:49:09 +0000 (15:49 +0300)
src/allocators.h
src/compat.h
src/qt/guiutil.cpp
src/util.cpp

index 2d4ef97..bb72117 100644 (file)
@@ -15,7 +15,7 @@
 #ifdef _WIN32_WINNT
 #undef _WIN32_WINNT
 #endif
-#define _WIN32_WINNT 0x0501
+#define _WIN32_WINNT 0x0601
 #define WIN32_LEAN_AND_MEAN 1
 #ifndef NOMINMAX
 #define NOMINMAX
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
index 57f3355..6c40eb4 100644 (file)
 #ifdef _WIN32_WINNT
 #undef _WIN32_WINNT
 #endif
-#define _WIN32_WINNT 0x0501
-#ifdef _WIN32_IE
-#undef _WIN32_IE
-#endif
-#define _WIN32_IE 0x0501
+#define _WIN32_WINNT 0x0601
 #define WIN32_LEAN_AND_MEAN 1
 #ifndef NOMINMAX
 #define NOMINMAX
index 022626b..76eb8a5 100644 (file)
 #include <openssl/rand.h>
 
 #ifdef WIN32
-#ifdef _WIN32_WINNT
-#undef _WIN32_WINNT
-#endif
-#define _WIN32_WINNT 0x0501
-#ifdef _WIN32_IE
-#undef _WIN32_IE
-#endif
-#define _WIN32_IE 0x0501
-#define WIN32_LEAN_AND_MEAN 1
-#ifndef NOMINMAX
-#define NOMINMAX
-#endif
 #include <io.h> /* for _commit */
 #include "shlobj.h"
 #elif defined(__linux__)