summaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2019-09-20 22:50:50 +0200
committerHans Kristian Rosbach <hk-github@circlestorm.org>2019-09-21 22:10:46 +0200
commite0480bc800f2f8c452b3a7c33434010d94b76446 (patch)
tree7fa1e137d5d5ffe741f9e298983f3f055c3c4917 /inflate.c
parent9f16eae381726c721890ea7212445d5b6a7bd3c4 (diff)
Unify detection of ARM getauxval code availability.
We don't want to compile arch-specific code when WITH_OPTIM is not set, and the current checks don't take that into account.
Diffstat (limited to 'inflate.c')
-rw-r--r--inflate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/inflate.c b/inflate.c
index fae8847..0b17e31 100644
--- a/inflate.c
+++ b/inflate.c
@@ -130,9 +130,9 @@ int ZEXPORT PREFIX(inflateInit2_)(PREFIX3(stream) *strm, int windowBits, const c
int ret;
struct inflate_state *state;
-#ifdef X86_CPUID
+#if defined(X86_CPUID)
x86_check_features();
-#elif defined(__arm__) || defined(__aarch64__) || defined(_M_ARM) || defined(_M_ARM64)
+#elif defined(ARM_GETAUXVAL)
arm_check_features();
#endif