| 1 |
diff --git a/secblock.h b/secblock.h |
| 2 |
index 5ab920f9..74d939cf 100644 |
| 3 |
--- a/secblock.h |
| 4 |
+++ b/secblock.h |
| 5 |
@@ -270,7 +270,7 @@ public: |
| 6 |
/// \details VS.NET STL enforces the policy of "All STL-compliant allocators |
| 7 |
/// have to provide a template class member called rebind". |
| 8 |
template <class V> struct rebind { typedef AllocatorWithCleanup<V, T_Align16> other; }; |
| 9 |
-#if (CRYPTOPP_MSC_VERSION >= 1500) |
| 10 |
+#if (CRYPTOPP_MSC_VERSION >= 1500) || defined(__clang__) |
| 11 |
AllocatorWithCleanup() {} |
| 12 |
template <class V, bool A> AllocatorWithCleanup(const AllocatorWithCleanup<V, A> &) {} |
| 13 |
#endif |
| 14 |
diff --git a/zdeflate.cpp b/zdeflate.cpp |
| 15 |
index b3514b55..20717c24 100644 |
| 16 |
--- a/zdeflate.cpp |
| 17 |
+++ b/zdeflate.cpp |
| 18 |
@@ -413,7 +413,7 @@ unsigned int Deflator::LongestMatch(unsigned int &bestMatch) const |
| 19 |
{ |
| 20 |
CRYPTOPP_ASSERT(scan[2] == match[2]); |
| 21 |
unsigned int len = (unsigned int)( |
| 22 |
-#if defined(_STDEXT_BEGIN) && !(defined(CRYPTOPP_MSC_VERSION) && (CRYPTOPP_MSC_VERSION < 1400 || CRYPTOPP_MSC_VERSION >= 1600)) && !defined(_STLPORT_VERSION) |
| 23 |
+#if defined(_STDEXT_BEGIN) && !(defined(CRYPTOPP_MSC_VERSION) && (CRYPTOPP_MSC_VERSION < 1400 || CRYPTOPP_MSC_VERSION >= 1600)) && !defined(_STLPORT_VERSION) && !defined(__clang__) |
| 24 |
stdext::unchecked_mismatch |
| 25 |
#else |
| 26 |
std::mismatch |