Win build: fix noise from compiler, subject to change in future
authorsvost <ya.nowa@yandex.ru>
Sun, 13 Feb 2022 16:18:53 +0000 (19:18 +0300)
committersvost <ya.nowa@yandex.ru>
Sun, 13 Feb 2022 16:18:53 +0000 (19:18 +0300)
src/allocators.h
src/compat.h

index c787b35..51bc73e 100644 (file)
 #include <vector>
 
 #ifdef WIN32
-#ifdef _WIN32_WINNT
-#undef _WIN32_WINNT
+#if (_WIN32_WINNT != _WIN32_WINNT_WIN7)
+#define _WIN32_WINNT 0x601
 #endif
-#define _WIN32_WINNT 0x0601
 #define WIN32_LEAN_AND_MEAN 1
 #ifndef NOMINMAX
 #define NOMINMAX
index d0e8114..4df4f4e 100644 (file)
@@ -6,7 +6,9 @@
 #define _BITCOIN_COMPAT_H 1
 
 #ifdef WIN32
-#define _WIN32_WINNT 0x0601
+#if (_WIN32_WINNT != _WIN_WINNT_WIN7)
+#define _WIN32_WINNT 0x601
+#endif
 #define WIN32_LEAN_AND_MEAN 1
 #ifndef NOMINMAX
 #define NOMINMAX