From 7fb6b3df74abd52d67da1f58c36c4863922abb7e Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 18 Mar 2017 16:56:14 -0400 Subject: [PATCH] Fix compile under Visual Studio 2005/MSC 14.00 Previous testing occurred with Visual Studio 2005 SP 1, and it lacks some of the Safe C++/security enhanced functions. --- integer.cpp | 2 +- validat1.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integer.cpp b/integer.cpp index 6e9f7e30..2ee9d80f 100644 --- a/integer.cpp +++ b/integer.cpp @@ -3009,7 +3009,7 @@ Integer::Integer(const byte *encodedInteger, size_t byteCount, Signedness s, Byt if (o == LITTLE_ENDIAN_ORDER) { SecByteBlock block(byteCount); -#if (CRYPTOPP_MSC_VERSION >= 1400) +#if (CRYPTOPP_MSC_VERSION >= 1410) std::reverse_copy(encodedInteger, encodedInteger+byteCount, stdext::make_checked_array_iterator(block.begin(), block.size())); #else diff --git a/validat1.cpp b/validat1.cpp index e4e7c456..9844776e 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -194,7 +194,7 @@ bool TestSettings() word32 w; const byte s[] = "\x01\x02\x03\x04"; -#if (CRYPTOPP_MSC_VERSION >= 1400) +#if (CRYPTOPP_MSC_VERSION >= 1410) std::copy(s, s+4, stdext::make_checked_array_iterator(reinterpret_cast(&w), sizeof(w))); #else