summaryrefslogtreecommitdiff
path: root/iterhash.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2008-12-22 06:55:08 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2008-12-22 06:55:08 +0000
commit83c4add7725ca2489ee5f10aee215e804368838b (patch)
treefb71bcd9079c3d52aa10d6a7c41a2f97412c6033 /iterhash.cpp
parentfca600f5f0c5759de6fe2f671aae8b183706c4b0 (diff)
downloadcryptopp-83c4add7725ca2489ee5f10aee215e804368838b.tar.gz
fix compile with GCC 4.0.1 on MacOS X 64-bit
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@430 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'iterhash.cpp')
-rw-r--r--iterhash.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/iterhash.cpp b/iterhash.cpp
index 273e034..44360b1 100644
--- a/iterhash.cpp
+++ b/iterhash.cpp
@@ -1,6 +1,8 @@
// iterhash.cpp - written and placed in the public domain by Wei Dai
+#ifndef __GNUC__
#define CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES
+#endif
#include "iterhash.h"
#include "misc.h"
@@ -142,4 +144,14 @@ template <class T, class BASE> void IteratedHashBase<T, BASE>::TruncatedFinal(by
this->Restart(); // reinit for next use
}
+#ifdef __GNUC__
+ #ifdef WORD64_AVAILABLE
+ template class IteratedHashBase<word64, HashTransformation>;
+ template class IteratedHashBase<word64, MessageAuthenticationCode>;
+ #endif
+
+ template class IteratedHashBase<word32, HashTransformation>;
+ template class IteratedHashBase<word32, MessageAuthenticationCode>;
+#endif
+
NAMESPACE_END