summaryrefslogtreecommitdiff
path: root/pngrtran.c
diff options
context:
space:
mode:
Diffstat (limited to 'pngrtran.c')
-rw-r--r--pngrtran.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/pngrtran.c b/pngrtran.c
index 8b48f79ba..ccc58ce6f 100644
--- a/pngrtran.c
+++ b/pngrtran.c
@@ -19,10 +19,14 @@
#include "pngpriv.h"
#ifdef PNG_ARM_NEON_IMPLEMENTATION
-#if PNG_ARM_NEON_IMPLEMENTATION == 1
-#define PNG_ARM_NEON_INTRINSICS_AVAILABLE
-#include <arm_neon.h>
-#endif
+# if PNG_ARM_NEON_IMPLEMENTATION == 1
+# define PNG_ARM_NEON_INTRINSICS_AVAILABLE
+# if defined(_MSC_VER) && defined(_M_ARM64)
+# include <arm64_neon.h>
+# else
+# include <arm_neon.h>
+# endif
+# endif
#endif
#ifdef PNG_READ_SUPPORTED