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;