diff --git a/Source/PCH/pch.h b/Source/PCH/pch.h index 34860a69e9..43f7528d0c 100644 --- a/Source/PCH/pch.h +++ b/Source/PCH/pch.h @@ -2,6 +2,27 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#ifdef _WIN32 + +#define STRINGIFY_HELPER(x) #x +#define STRINGIFY(x) STRINGIFY_HELPER(x) + +#if defined _MSC_FULL_VER && _MSC_FULL_VER < 192729111 +#pragma message("Current _MSC_FULL_VER: " STRINGIFY(_MSC_FULL_VER)) +#error Please update your build environment to the latest Visual Studio 2019! +#endif + +#include +#ifndef NTDDI_WIN10_VB +#pragma message("Current WDK_NTDDI_VERSION: " STRINGIFY(WDK_NTDDI_VERSION)) +#error Windows 10.0.19041 SDK or later is required +#endif + +#undef STRINGIFY +#undef STRINGIFY_HELPER + +#endif + #include #include #include @@ -66,13 +87,7 @@ #include #ifdef _WIN32 - -#if _MSC_FULL_VER < 191426433 -#error Please update your build environment to the latest Visual Studio 2017! -#endif - #include - #endif #include "Common/Common.h"