summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-06-01 08:05:39 -0400
committerJeffrey Walton <noloader@gmail.com>2019-06-01 08:05:39 -0400
commit9538f2d71544fd48c55dc94cbc12ae24d26cef45 (patch)
tree85948451f97acebad4b6880ab245621fec070681 /misc.h
parentf00b0427aa9542638d05e4ecce13cdffe9a1f25a (diff)
downloadcryptopp-git-9538f2d71544fd48c55dc94cbc12ae24d26cef45.tar.gz
Fix compile on iOS
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc.h b/misc.h
index 6bcd554e..75ce5cd0 100644
--- a/misc.h
+++ b/misc.h
@@ -67,11 +67,13 @@
#include <byteswap.h>
#endif
-#if (defined(__GNUC__) || defined(__clang__)) && (__ARM_ARCH >= 6)
+// Apple Clang does not consume the GCC inline assembly as expected
+#if (defined(__GNUC__) && !defined(__clang__)) && (__ARM_ARCH >= 6)
#define CRYPTOPP_ARM_BYTEREV_AVAILABLE 1
#endif
-#if (defined(__GNUC__) || defined(__clang__)) && (__ARM_ARCH >= 7)
+// Apple Clang does not consume the GCC inline assembly as expected
+#if (defined(__GNUC__) && !defined(__clang__)) && (__ARM_ARCH >= 7)
#define CRYPTOPP_ARM_BITREV_AVAILABLE 1
#endif