From 31cddb43896cf6422d1eac96547cbbeb4d469ae1 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Mon, 17 Aug 2020 13:10:21 -0700 Subject: [PATCH] require msvc 19.27.29111 and Windows SDK 10.0.19041 --- Source/PCH/pch.h | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) 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"