summaryrefslogtreecommitdiff
path: root/iterhash.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2008-12-22 06:55:08 +0000
committerweidai <weidai11@users.noreply.github.com>2008-12-22 06:55:08 +0000
commitf8717545022137560ae3fe2f2a28709bf9122d78 (patch)
treefb71bcd9079c3d52aa10d6a7c41a2f97412c6033 /iterhash.h
parent1dc4ead99995b64fd3ca1982ee1e3a833acba98e (diff)
downloadcryptopp-git-f8717545022137560ae3fe2f2a28709bf9122d78.tar.gz
fix compile with GCC 4.0.1 on MacOS X 64-bit
Diffstat (limited to 'iterhash.h')
-rw-r--r--iterhash.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/iterhash.h b/iterhash.h
index d7d2f6e9..a22b57db 100644
--- a/iterhash.h
+++ b/iterhash.h
@@ -93,14 +93,16 @@ protected:
FixedSizeSecBlock<T_HashWordType, T_BlockSize/sizeof(T_HashWordType)> m_state;
};
-#ifdef WORD64_AVAILABLE
-CRYPTOPP_DLL_TEMPLATE_CLASS IteratedHashBase<word64, HashTransformation>;
-CRYPTOPP_STATIC_TEMPLATE_CLASS IteratedHashBase<word64, MessageAuthenticationCode>;
+#ifndef __GNUC__
+ #ifdef WORD64_AVAILABLE
+ CRYPTOPP_DLL_TEMPLATE_CLASS IteratedHashBase<word64, HashTransformation>;
+ CRYPTOPP_STATIC_TEMPLATE_CLASS IteratedHashBase<word64, MessageAuthenticationCode>;
+ #endif
+
+ CRYPTOPP_DLL_TEMPLATE_CLASS IteratedHashBase<word32, HashTransformation>;
+ CRYPTOPP_STATIC_TEMPLATE_CLASS IteratedHashBase<word32, MessageAuthenticationCode>;
#endif
-CRYPTOPP_DLL_TEMPLATE_CLASS IteratedHashBase<word32, HashTransformation>;
-CRYPTOPP_STATIC_TEMPLATE_CLASS IteratedHashBase<word32, MessageAuthenticationCode>;
-
NAMESPACE_END
#endif