From 874f79c32061da48291f63d60d90fe17ca5a874b Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 20 Aug 2018 05:35:34 -0400 Subject: [PATCH] Fix compile on Visual Studio 2005 without serve packs --- integer.cpp | 2 +- validat3.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integer.cpp b/integer.cpp index c33aa055..54f7c1fa 100644 --- a/integer.cpp +++ b/integer.cpp @@ -3024,7 +3024,7 @@ Integer::Integer(const byte *encodedInteger, size_t byteCount, Signedness s, Byt else { SecByteBlock block(byteCount); -#if (_MSC_FULL_VER >= 140050727) +#if (_MSC_VER >= 1500) std::reverse_copy(encodedInteger, encodedInteger+byteCount, stdext::make_checked_array_iterator(block.begin(), block.size())); #else diff --git a/validat3.cpp b/validat3.cpp index 10ee1188..e1706bb2 100644 --- a/validat3.cpp +++ b/validat3.cpp @@ -26,7 +26,7 @@ #include // Aggressive stack checking with VS2005 SP1 and above. -#if (_MSC_FULL_VER >= 140050727) +#if (_MSC_VER >= 1500) # pragma strict_gs_check (on) #endif