diff options
author | weidai <weidai11@users.noreply.github.com> | 2008-12-22 06:55:08 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2008-12-22 06:55:08 +0000 |
commit | f8717545022137560ae3fe2f2a28709bf9122d78 (patch) | |
tree | fb71bcd9079c3d52aa10d6a7c41a2f97412c6033 /iterhash.cpp | |
parent | 1dc4ead99995b64fd3ca1982ee1e3a833acba98e (diff) | |
download | cryptopp-git-f8717545022137560ae3fe2f2a28709bf9122d78.tar.gz |
fix compile with GCC 4.0.1 on MacOS X 64-bit
Diffstat (limited to 'iterhash.cpp')
-rw-r--r-- | iterhash.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/iterhash.cpp b/iterhash.cpp index 273e0340..44360b11 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 |