summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-10-24 01:11:45 -0400
committerJeffrey Walton <noloader@gmail.com>2018-10-24 01:11:45 -0400
commitd230999b408740d604b136bdfa28f1a60b0211fe (patch)
tree730fe45b37261b47af65a1ac6a1861d39aaf73f9 /config.h
parent6a5d2ab03d05cdde8d3fbf96fc2db9ac80b11e7e (diff)
downloadcryptopp-git-d230999b408740d604b136bdfa28f1a60b0211fe.tar.gz
Fix ChaCha compile on ARM and MIPS
Diffstat (limited to 'config.h')
-rw-r--r--config.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.h b/config.h
index 02afb031..9cc22a35 100644
--- a/config.h
+++ b/config.h
@@ -496,7 +496,7 @@ NAMESPACE_END
#define CRYPTOPP_SSE2_ASM_AVAILABLE 1
#endif
- #if !defined(CRYPTOPP_DISABLE_SSSE3) && (_MSC_VER >= 1500 || defined(__SSSE3__))
+ #if !defined(CRYPTOPP_DISABLE_SSSE3) && (_MSC_VER >= 1500 || CRYPTOPP_GCC_VERSION >= 40300 || defined(__SSSE3__))
#define CRYPTOPP_SSSE3_ASM_AVAILABLE 1
#endif
#endif
@@ -510,7 +510,7 @@ NAMESPACE_END
#endif
// 32-bit SunCC does not enable SSE2 by default.
-#if !defined(CRYPTOPP_DISABLE_ASM) && (defined(_MSC_VER) || defined(__SSE2__))
+#if !defined(CRYPTOPP_DISABLE_ASM) && (defined(_MSC_VER) || CRYPTOPP_GCC_VERSION >= 30300 || defined(__SSE2__))
#define CRYPTOPP_SSE2_INTRIN_AVAILABLE 1
#endif