require msvc 19.27.29111 and Windows SDK 10.0.19041

This commit is contained in:
Shawn Hoffman 2020-08-17 13:10:21 -07:00
parent 6ada03fca2
commit 31cddb4389

View File

@ -2,6 +2,27 @@
// Licensed under GPLv2+ // Licensed under GPLv2+
// Refer to the license.txt file included. // 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 <sdkddkver.h>
#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 <algorithm> #include <algorithm>
#include <array> #include <array>
#include <assert.h> #include <assert.h>
@ -66,13 +87,7 @@
#include <vector> #include <vector>
#ifdef _WIN32 #ifdef _WIN32
#if _MSC_FULL_VER < 191426433
#error Please update your build environment to the latest Visual Studio 2017!
#endif
#include <Windows.h> #include <Windows.h>
#endif #endif
#include "Common/Common.h" #include "Common/Common.h"