summaryrefslogtreecommitdiff
path: root/secblock.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-09-12 02:28:48 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-09-12 02:28:48 +0000
commit391e30799f0b6d4a034eb2352e682440898b62f4 (patch)
tree3b1c338a034aa7a2e1ee6f4d0e038cb5687a55b6 /secblock.h
parentc9af9b08c414f4e080b3e1ced77ca3ccd04441e5 (diff)
downloadcryptopp-391e30799f0b6d4a034eb2352e682440898b62f4.tar.gz
fix compile for for STLport 5.1.3 and MSVC 6 SP5
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@393 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'secblock.h')
-rw-r--r--secblock.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/secblock.h b/secblock.h
index 5bb447d..aecd4d4 100644
--- a/secblock.h
+++ b/secblock.h
@@ -485,7 +485,8 @@ inline void swap(CryptoPP::SecBlock<T, A> &a, CryptoPP::SecBlock<T, A> &b)
a.swap(b);
}
-#if defined(_STLPORT_VERSION) && !defined(_STLP_MEMBER_TEMPLATE_CLASSES)
+#if defined(_STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE) || (defined(_STLPORT_VERSION) && !defined(_STLP_MEMBER_TEMPLATE_CLASSES))
+// working for STLport 5.1.3 and MSVC 6 SP5
template <class _Tp1, class _Tp2>
inline CryptoPP::AllocatorWithCleanup<_Tp2>&
__stl_alloc_rebind(CryptoPP::AllocatorWithCleanup<_Tp1>& __a, const _Tp2*)