summaryrefslogtreecommitdiff
path: root/zdeflate.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-12-03 21:31:22 -0500
committerJeffrey Walton <noloader@gmail.com>2016-12-03 21:31:22 -0500
commit56a91ca1971d8e8df8bde1fcec512ddb93b72bbf (patch)
tree7d2394a2cd812fab2bd659d368b74b3908015e19 /zdeflate.cpp
parenta274a64058b8dc5b66f6e50dbd0e0250eaed08e8 (diff)
downloadcryptopp-git-56a91ca1971d8e8df8bde1fcec512ddb93b72bbf.tar.gz
Remove last of macros targtting _MSC_VER 1200 (Issue 342)
Diffstat (limited to 'zdeflate.cpp')
-rw-r--r--zdeflate.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/zdeflate.cpp b/zdeflate.cpp
index 15ae2de7..b8ce89c3 100644
--- a/zdeflate.cpp
+++ b/zdeflate.cpp
@@ -12,6 +12,15 @@
NAMESPACE_BEGIN(CryptoPP)
+#if (defined(_MSC_VER) && (_MSC_VER < 1400)) && !defined(__MWERKS__)
+ // VC60 and VC7 workaround: built-in std::reverse_iterator has two template parameters, Dinkumware only has one
+ typedef std::reverse_bidirectional_iterator<unsigned int *, unsigned int> RevIt;
+#elif defined(_RWSTD_NO_CLASS_PARTIAL_SPEC)
+ typedef std::reverse_iterator<unsigned int *, std::random_access_iterator_tag, unsigned int> RevIt;
+#else
+ typedef std::reverse_iterator<unsigned int *> RevIt;
+#endif
+
LowFirstBitWriter::LowFirstBitWriter(BufferedTransformation *attachment)
: Filter(attachment), m_counting(false), m_bitCount(0), m_buffer(0)
, m_bitsBuffered(0), m_bytesBuffered(0)
@@ -661,15 +670,6 @@ void Deflator::EncodeBlock(bool eof, unsigned int blockType)
{
if (blockType == DYNAMIC)
{
-#if defined(_MSC_VER) && !defined(__MWERKS__) && (_MSC_VER <= 1300)
- // VC60 and VC7 workaround: built-in std::reverse_iterator has two template parameters, Dinkumware only has one
- typedef std::reverse_bidirectional_iterator<unsigned int *, unsigned int> RevIt;
-#elif defined(_RWSTD_NO_CLASS_PARTIAL_SPEC)
- typedef std::reverse_iterator<unsigned int *, std::random_access_iterator_tag, unsigned int> RevIt;
-#else
- typedef std::reverse_iterator<unsigned int *> RevIt;
-#endif
-
FixedSizeSecBlock<unsigned int, 286> literalCodeLengths;
FixedSizeSecBlock<unsigned int, 30> distanceCodeLengths;