From afba9f4a87f4b333ed7094e269adb31e667c3220 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 11 Sep 2020 05:59:46 -0400 Subject: Fix MSVC compile error with VS2019 --- fipstest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fipstest.cpp') diff --git a/fipstest.cpp b/fipstest.cpp index 2440b94f..b52fde97 100644 --- a/fipstest.cpp +++ b/fipstest.cpp @@ -401,7 +401,9 @@ bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModule } } -#if defined(_MSC_VER) && _MSC_VER >= 1400 && !(defined(_M_ARM) || defined(_M_ARM64)) + // Visual Studio 2019 is MSC_VER == 1920 + // https://dev.to/yumetodo/list-of-mscver-and-mscfullver-8nds +#if (_MSC_VER >= 1400 && _MSC_VER < 1920) && !defined(_M_ARM) && !defined(_M_ARM64) // first byte of _CRT_DEBUGGER_HOOK gets modified in memory by the debugger invisibly, so read it from file if (IsDebuggerPresent()) { -- cgit v1.2.1