summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-06-06 18:15:33 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-06-28 22:54:21 +0200
commit2109057119781a3e8ed266836c95f98eded2038c (patch)
tree5d88bf4bb990c004963c8f2f1c4f44bca853a89d /src
parentWindows backtrace: fprintf to fputs (diff)
downloadcuberite-2109057119781a3e8ed266836c95f98eded2038c.tar
cuberite-2109057119781a3e8ed266836c95f98eded2038c.tar.gz
cuberite-2109057119781a3e8ed266836c95f98eded2038c.tar.bz2
cuberite-2109057119781a3e8ed266836c95f98eded2038c.tar.lz
cuberite-2109057119781a3e8ed266836c95f98eded2038c.tar.xz
cuberite-2109057119781a3e8ed266836c95f98eded2038c.tar.zst
cuberite-2109057119781a3e8ed266836c95f98eded2038c.zip
Diffstat (limited to 'src')
-rw-r--r--src/Globals.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Globals.h b/src/Globals.h
index 8da8c14c8..dc0bdc3ae 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -78,14 +78,12 @@
// OS-dependent stuff:
#ifdef _WIN32
- #include <sdkddkver.h>
-
#define NOMINMAX // Windows SDK defines min and max macros, messing up with our std::min and std::max usage.
#define WIN32_LEAN_AND_MEAN
- #define _WIN32_WINNT _WIN32_WINNT_WINXP // We want to target Windows XP with Service Pack 2 & Windows Server 2003 with Service Pack 1 and higher.
+ #define _WIN32_WINNT 0x0501 // We want to target Windows XP with Service Pack 2 & Windows Server 2003 with Service Pack 1 and higher.
// Use CryptoAPI primitives when targeting a version that supports encrypting with AES-CFB8 smaller than a full block at a time.
- #define PLATFORM_CRYPTOGRAPHY (_WIN32_WINNT >= _WIN32_WINNT_WIN8)
+ #define PLATFORM_CRYPTOGRAPHY (_WIN32_WINNT >= 0x0602)
#include <Windows.h>
#include <winsock2.h>