diff --git a/trunk/c5/cryptdll.vcproj b/trunk/c5/cryptdll.vcproj index a3ab06ba..293fe0c6 100755 --- a/trunk/c5/cryptdll.vcproj +++ b/trunk/c5/cryptdll.vcproj @@ -2,9 +2,9 @@ @@ -41,16 +41,13 @@ - - @@ -142,16 +136,13 @@ - - @@ -242,16 +230,13 @@ - - @@ -338,16 +320,13 @@ - - diff --git a/trunk/c5/cryptest.vcproj b/trunk/c5/cryptest.vcproj index f7e4a6ea..03a5b885 100755 --- a/trunk/c5/cryptest.vcproj +++ b/trunk/c5/cryptest.vcproj @@ -38,9 +38,6 @@ - - @@ -128,9 +122,6 @@ - - @@ -220,9 +208,6 @@ - - @@ -312,9 +294,6 @@ - - @@ -405,9 +381,6 @@ - - @@ -490,9 +460,6 @@ - - @@ -577,9 +541,6 @@ - - @@ -660,9 +618,6 @@ - - diff --git a/trunk/c5/cryptlib.vcproj b/trunk/c5/cryptlib.vcproj index aeeca761..0a118b11 100755 --- a/trunk/c5/cryptlib.vcproj +++ b/trunk/c5/cryptlib.vcproj @@ -37,9 +37,6 @@ - @@ -109,9 +106,6 @@ - - @@ -204,7 +195,6 @@ ProgramDataBaseFileName="$(OutDir)\vc80.pdb" WarningLevel="3" SuppressStartupBanner="true" - Detect64BitPortabilityProblems="true" DebugInformationFormat="3" /> - - @@ -398,9 +381,6 @@ - - @@ -483,7 +460,6 @@ ProgramDataBaseFileName="$(OutDir)\vc80.pdb" WarningLevel="3" SuppressStartupBanner="true" - Detect64BitPortabilityProblems="true" DebugInformationFormat="4" /> - - - @@ -126,9 +120,6 @@ - - @@ -215,9 +203,6 @@ - - @@ -300,9 +282,6 @@ - - diff --git a/trunk/c5/pubkey.h b/trunk/c5/pubkey.h index bdf00351..3a3f3bcd 100644 --- a/trunk/c5/pubkey.h +++ b/trunk/c5/pubkey.h @@ -240,7 +240,7 @@ public: { static HashIdentifier CRYPTOPP_API Lookup() { - return HashIdentifier(NULL, 0); + return HashIdentifier((const byte *)NULL, 0); } }; }; diff --git a/trunk/c5/zdeflate.cpp b/trunk/c5/zdeflate.cpp index bef0f7c1..bdcd7ba4 100644 --- a/trunk/c5/zdeflate.cpp +++ b/trunk/c5/zdeflate.cpp @@ -9,6 +9,11 @@ #include "zdeflate.h" #include +#if _MSC_VER >= 1600 +// for make_unchecked_array_iterator +#include +#endif + NAMESPACE_BEGIN(CryptoPP) using namespace std; @@ -386,12 +391,16 @@ unsigned int Deflator::LongestMatch(unsigned int &bestMatch) const { assert(scan[2] == match[2]); unsigned int len = (unsigned int)( -#if defined(_STDEXT_BEGIN) && !(defined(_MSC_VER) && _MSC_VER < 1400) && !defined(_STLPORT_VERSION) +#if defined(_STDEXT_BEGIN) && !(defined(_MSC_VER) && (_MSC_VER < 1400 || _MSC_VER >= 1600)) && !defined(_STLPORT_VERSION) stdext::unchecked_mismatch #else std::mismatch #endif +#if _MSC_VER >= 1600 + (stdext::make_unchecked_array_iterator(scan)+3, stdext::make_unchecked_array_iterator(scanEnd), stdext::make_unchecked_array_iterator(match)+3).first - stdext::make_unchecked_array_iterator(scan)); +#else (scan+3, scanEnd, match+3).first - scan); +#endif assert(len != bestLength); if (len > bestLength) {