From a31a2a989fdb5264ce9574331a66103bedaaa2d8 Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 22 Dec 2006 15:03:42 +0000 Subject: [PATCH] fix compile for MSVC .NET 2002 --- ida.cpp | 4 ++-- zdeflate.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ida.cpp b/ida.cpp index fa6a4b8a..5cb43b22 100644 --- a/ida.cpp +++ b/ida.cpp @@ -392,8 +392,8 @@ size_t PaddingRemover::Put2(const byte *begin, size_t length, int messageEnd, bo m_possiblePadding = false; } -#if defined(_MSC_VER) && !defined(__MWERKS__) && (_MSC_VER < 1300) - // VC60 workaround: built-in reverse_iterator has two template parameters, Dinkumware only has one +#if defined(_MSC_VER) && !defined(__MWERKS__) && (_MSC_VER <= 1300) + // VC60 and VC7 workaround: built-in reverse_iterator has two template parameters, Dinkumware only has one typedef reverse_bidirectional_iterator RevIt; #elif defined(_RWSTD_NO_CLASS_PARTIAL_SPEC) typedef reverse_iterator RevIt; diff --git a/zdeflate.cpp b/zdeflate.cpp index 9fd15890..426e438a 100644 --- a/zdeflate.cpp +++ b/zdeflate.cpp @@ -636,8 +636,8 @@ void Deflator::EncodeBlock(bool eof, unsigned int blockType) { if (blockType == DYNAMIC) { -#if defined(_MSC_VER) && !defined(__MWERKS__) && (_MSC_VER < 1300) - // VC60 workaround: built-in reverse_iterator has two template parameters, Dinkumware only has one +#if defined(_MSC_VER) && !defined(__MWERKS__) && (_MSC_VER <= 1300) + // VC60 and VC7 workaround: built-in reverse_iterator has two template parameters, Dinkumware only has one typedef reverse_bidirectional_iterator RevIt; #elif defined(_RWSTD_NO_CLASS_PARTIAL_SPEC) typedef reverse_iterator RevIt;