summaryrefslogtreecommitdiff
path: root/fipstest.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-09-11 05:59:46 -0400
committerJeffrey Walton <noloader@gmail.com>2020-09-11 05:59:46 -0400
commitafba9f4a87f4b333ed7094e269adb31e667c3220 (patch)
treed6d18bd6dfbf3c508cdc57d6c253a9167528479e /fipstest.cpp
parent4f2ba562e7455514f264ff0c0a5c33ac69858600 (diff)
downloadcryptopp-git-afba9f4a87f4b333ed7094e269adb31e667c3220.tar.gz
Fix MSVC compile error with VS2019
Diffstat (limited to 'fipstest.cpp')
-rw-r--r--fipstest.cpp4
1 files changed, 3 insertions, 1 deletions
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())
{