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.
pull/398/head
Jeffrey Walton 2017-03-18 16:56:14 -04:00
parent 71afcadadb
commit 7fb6b3df74
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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<byte*>(&w), sizeof(w)));
#else