diff options
author | Cosmin Truta <ctruta@gmail.com> | 2018-09-04 00:53:38 -0400 |
---|---|---|
committer | Cosmin Truta <ctruta@gmail.com> | 2018-09-04 00:53:38 -0400 |
commit | 1ceaa83a844cd3ecef25279d60720f910b96f297 (patch) | |
tree | a06dfa144f1ca1e5917449d6385417b553e260ce /pngrtran.c | |
parent | b66ed711315c46ef6c556c83c0074ecdcbd9937f (diff) |
Fix the build with MSVC ARM64
Diffstat (limited to 'pngrtran.c')
-rw-r--r-- | pngrtran.c | 12 |
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 |