Merge pull request #9048 from shuffle2/msvc-version

require msvc 19.27.29111 and Windows SDK 10.0.19041
This commit is contained in:
Léo Lam 2020-10-20 13:35:18 +02:00 committed by GitHub
commit 96cb27842a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 6 deletions

View File

@ -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 <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 <array>
#include <assert.h>
@ -66,13 +87,7 @@
#include <vector>
#ifdef _WIN32
#if _MSC_FULL_VER < 191426433
#error Please update your build environment to the latest Visual Studio 2017!
#endif
#include <Windows.h>
#endif
#include "Common/Common.h"