summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kertesz <gabor.kertesz@linaro.org>2021-10-25 12:03:42 +0200
committerCosmin Truta <ctruta@gmail.com>2022-09-13 01:23:52 +0300
commita1a81cc2acfd4f06c04197518c0195e3bdc7f5b2 (patch)
tree87336b9044f51b3cb97e646f988f6f5652e7ebb6
parentc3a1d8424c16c35f377861b968765d4db154e859 (diff)
downloadlibpng-a1a81cc2acfd4f06c04197518c0195e3bdc7f5b2.tar.gz
Fix arm neon config for win-arm64 with MSVC
Fixes #398 It adds win-arm64 as an arm64 platform, by using a define which is set to 1 for compilations that target 64-bit ARM processors, otherwise undefined.
-rw-r--r--pngpriv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pngpriv.h b/pngpriv.h
index 583c26f9b..1edea74cb 100644
--- a/pngpriv.h
+++ b/pngpriv.h
@@ -174,7 +174,7 @@
# else /* !defined __ARM_NEON__ */
/* The 'intrinsics' code simply won't compile without this -mfpu=neon:
*/
-# if !defined(__aarch64__)
+# if !defined(__aarch64__) && !defined(_M_ARM64)
/* The assembler code currently does not work on ARM64 */
# define PNG_ARM_NEON_IMPLEMENTATION 2
# endif /* __aarch64__ */