From 47d3ceb3da845e216fc9577cbf52f8b5600e5f93 Mon Sep 17 00:00:00 2001 From: svost Date: Sun, 2 Jan 2022 15:49:09 +0300 Subject: [PATCH] Set _WIN32_WINNT to windows 7 --- src/allocators.h | 2 +- src/compat.h | 5 ++--- src/qt/guiutil.cpp | 6 +----- src/util.cpp | 12 ------------ 4 files changed, 4 insertions(+), 21 deletions(-) diff --git a/src/allocators.h b/src/allocators.h index 2d4ef97..bb72117 100644 --- a/src/allocators.h +++ b/src/allocators.h @@ -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 diff --git a/src/compat.h b/src/compat.h index a4c6489..d0e8114 100644 --- a/src/compat.h +++ b/src/compat.h @@ -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 #include #include #else @@ -56,4 +55,4 @@ typedef int socklen_t; #define SOCKET_ERROR -1 #endif -#endif \ No newline at end of file +#endif diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 57f3355..6c40eb4 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -35,11 +35,7 @@ #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 diff --git a/src/util.cpp b/src/util.cpp index 022626b..76eb8a5 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -22,18 +22,6 @@ #include #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 /* for _commit */ #include "shlobj.h" #elif defined(__linux__) -- 1.7.1