summaryrefslogtreecommitdiff
path: root/config_misc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-04-19 15:00:17 -0400
committerJeffrey Walton <noloader@gmail.com>2021-04-19 15:00:17 -0400
commit6c774514333a97c1d94859d305801f416a546341 (patch)
treee2ea6324905c4e1e8f81c8b7834a5cdfcf3a1447 /config_misc.h
parent327d85d9bab7476d0046cf291d20dad5058abdf2 (diff)
downloadcryptopp-git-6c774514333a97c1d94859d305801f416a546341.tar.gz
Update comments
Diffstat (limited to 'config_misc.h')
-rw-r--r--config_misc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/config_misc.h b/config_misc.h
index 1f083ab9..ceb6d11d 100644
--- a/config_misc.h
+++ b/config_misc.h
@@ -193,8 +193,9 @@
// Should work for Clang 7 and above: https://stackoverflow.com/q/39958935.
// But Clang 10 is broke: https://bugs.llvm.org/show_bug.cgi?id=50025.
+// And GCC only works on Linux. It pukes on Apple and Solaris platforms.
#if defined(__i386__) || defined(__i686__) || defined(__amd64__)
-# if (CRYPTOPP_GCC_VERSION >= 40800)
+# if defined(__linux__) && (CRYPTOPP_GCC_VERSION >= 40800)
# include <x86intrin.h>
# define CRYPTOPP_HAVE_ATTRIBUTE_TARGET 1
# define CRYPTOPP_TARGET_DEFAULT __attribute__ ((target ("default")))