From d30cf438f1f23c3c6e73fc01b7b2d720592e2476 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Mon, 11 May 2026 09:54:21 +0200 Subject: [PATCH] [neon] Fix incorrect guard for system headers on Windows One need to cope with windows/non-windows header as well as clang-cl/msvc compatibility. Courtesy to @komainu8 and @mtl1979 for the patch. Fix #1346 --- include/xsimd/types/xsimd_neon_register.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xsimd/types/xsimd_neon_register.hpp b/include/xsimd/types/xsimd_neon_register.hpp index aef4bc0d9..82e27a986 100644 --- a/include/xsimd/types/xsimd_neon_register.hpp +++ b/include/xsimd/types/xsimd_neon_register.hpp @@ -18,7 +18,7 @@ #include "./xsimd_register.hpp" #if XSIMD_WITH_NEON -#if defined(_WIN32) && XSIMD_WITH_NEON64 +#if defined(_MSC_VER) && !defined(__clang__) && XSIMD_WITH_NEON64 #include #else #include