summaryrefslogtreecommitdiff
path: root/arm/arm_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arm/arm_init.c')
-rw-r--r--arm/arm_init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arm/arm_init.c b/arm/arm_init.c
index ab22525b3..84d05556f 100644
--- a/arm/arm_init.c
+++ b/arm/arm_init.c
@@ -36,7 +36,10 @@
#ifndef PNG_ARM_NEON_FILE
# if defined(__aarch64__) || defined(_M_ARM64)
/* ARM Neon is expected to be unconditionally available on ARM64. */
-# error "PNG_ARM_NEON_CHECK_SUPPORTED must not be defined on this platform"
+# error "PNG_ARM_NEON_CHECK_SUPPORTED must not be defined on ARM64"
+# elif defined(__ARM_NEON__) || defined(__ARM_NEON)
+ /* ARM Neon is expected to be available on the target CPU architecture. */
+# error "PNG_ARM_NEON_CHECK_SUPPORTED must not be defined on this CPU arch"
# elif defined(__linux__)
# define PNG_ARM_NEON_FILE "contrib/arm-neon/linux.c"
# else