summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-12-15 17:00:39 -0500
committerJeffrey Walton <noloader@gmail.com>2017-12-15 17:00:39 -0500
commit93f69011196664ef6ff9e8712799a12a86936e58 (patch)
tree62ad6d0b476694e5e52c21bee55f889e4a5770eb /config.h
parent43a34590a994e37044b76b379338c57c5d32010f (diff)
downloadcryptopp-git-93f69011196664ef6ff9e8712799a12a86936e58.tar.gz
Avoid including <arm_acle.h> on Android (GH #546)
It sure would be nice if everyone just followed the ACLE guidlines at http://infocenter.arm.com/help/topic/com.arm.doc.ihi0053c/IHI0053C_acle_2_0.pdf
Diffstat (limited to 'config.h')
-rw-r--r--config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.h b/config.h
index 5d3ceff6..873158bf 100644
--- a/config.h
+++ b/config.h
@@ -613,6 +613,10 @@ NAMESPACE_END
# define CRYPTOPP_ARM_ACLE_AVAILABLE 1
#endif
+#if (defined(__ANDROID__) || defined(ANDROID)) && !defined(__ARM_ACLE)
+# undef CRYPTOPP_ARM_ACLE_AVAILABLE
+#endif
+
#endif // ARM32, ARM64
// ***************** AltiVec and Power8 ********************