Skip to content

Commit 05c44c7

Browse files
fix: Includes on Windows ARM64 with clang-cl
Signed-off-by: Anthony Roberts <[email protected]>
1 parent 357648f commit 05c44c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/include/OpenImageIO/simd.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@
115115
// Cuda -- don't include any of these headers
116116
#elif defined(_WIN32)
117117
# include <intrin.h>
118+
// MSVC's intrin.h includes arm_neon.h, clang (and by extension clang-cl)
119+
// has a version without this inclusion, so we need to manually add it
120+
# if defined(__ARM_NEON__) && !defined(OIIO_NO_NEON)
121+
# include <arm_neon.h>
122+
# endif
118123
#elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__)) || defined(__e2k__)
119124
# include <x86intrin.h>
120125
#elif defined(__GNUC__) && defined(__ARM_NEON__) && !defined(OIIO_NO_NEON)

0 commit comments

Comments
 (0)