Fix compile on iOS

This commit is contained in:
Jeffrey Walton 2019-06-01 08:05:39 -04:00
parent f00b0427aa
commit 9538f2d715
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

6
misc.h
View File

@ -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