summaryrefslogtreecommitdiff
path: root/integer.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2005-09-05 21:43:43 +0000
committerweidai <weidai11@users.noreply.github.com>2005-09-05 21:43:43 +0000
commit09bb1aab6411aa9f373a037a46f8986d48b56075 (patch)
tree7c9380467a43a9fd9b4095024796ccabfdce1280 /integer.h
parent946eb7f0f4831bdb3e25eee84489f896a5d1a867 (diff)
downloadcryptopp-git-09bb1aab6411aa9f373a037a46f8986d48b56075.tar.gz
port to GCC 4
Diffstat (limited to 'integer.h')
-rw-r--r--integer.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/integer.h b/integer.h
index 7faf7b60..0c123c63 100644
--- a/integer.h
+++ b/integer.h
@@ -26,7 +26,7 @@
#endif
// SSE2 intrinsics work in GCC 3.3 or later
-#if defined(__SSE2__) && (__GNUC_MAJOR__ > 3 || __GNUC_MINOR__ > 2)
+#if defined(__SSE2__) && (__GNUC__ > 3 || __GNUC_MINOR__ > 2)
#define SSE2_INTRINSICS_AVAILABLE
#endif
@@ -56,7 +56,10 @@ NAMESPACE_BEGIN(CryptoPP)
#endif
};
- template class CRYPTOPP_DLL AlignedAllocator<word>;
+ #ifdef CRYPTOPP_IMPORTS
+ CRYPTOPP_DLL_TEMPLATE_CLASS AlignedAllocator<word>;
+ #endif
+
typedef SecBlock<word, AlignedAllocator<word> > SecAlignedWordBlock;
#else
typedef SecWordBlock SecAlignedWordBlock;