diff options
author | Jeffrey Walton <noloader@gmail.com> | 2020-09-11 05:59:46 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2020-09-11 05:59:46 -0400 |
commit | afba9f4a87f4b333ed7094e269adb31e667c3220 (patch) | |
tree | d6d18bd6dfbf3c508cdc57d6c253a9167528479e /fipstest.cpp | |
parent | 4f2ba562e7455514f264ff0c0a5c33ac69858600 (diff) | |
download | cryptopp-git-afba9f4a87f4b333ed7094e269adb31e667c3220.tar.gz |
Fix MSVC compile error with VS2019
Diffstat (limited to 'fipstest.cpp')
-rw-r--r-- | fipstest.cpp | 4 |
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())
{
|