From 53248a79fba4778056dd30088c22025c73624d8e Mon Sep 17 00:00:00 2001 From: MUGUNDAN Date: Wed, 26 Nov 2025 15:43:09 +0530 Subject: [PATCH] Include Windows header and define NOMINMAX for Windows ARM64 builds --- common/simd/arm/sse2neon.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/simd/arm/sse2neon.h b/common/simd/arm/sse2neon.h index b18d41e783..a0f0753e34 100644 --- a/common/simd/arm/sse2neon.h +++ b/common/simd/arm/sse2neon.h @@ -109,6 +109,16 @@ #define SSE2NEON_ALLOC_DEFINED #endif +/* Include Windows.h and define NOMINMAX + * for Windows ARM64 builds + */ +#if defined(__WIN32__) +# if !defined(NOMINMAX) +# define NOMINMAX +# endif +# include +#endif + /* If using MSVC */ #ifdef _MSC_VER #include