From db864a1e309e3e785d1b58879cec83c66444fb2b Mon Sep 17 00:00:00 2001 From: Eugene Golushkov Date: Thu, 1 Oct 2020 03:20:30 +0300 Subject: [PATCH] stb_image: fix building by MSVC for Windows 10 on ARM --- stb_image.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stb_image.h b/stb_image.h index 59ee9fb..5b2c456 100644 --- a/stb_image.h +++ b/stb_image.h @@ -777,9 +777,12 @@ static int stbi__sse2_available(void) #ifdef STBI_NEON #include -// assume GCC or Clang on ARM targets +#ifdef _MSC_VER +#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name +#else #define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16))) #endif +#endif #ifndef STBI_SIMD_ALIGN #define STBI_SIMD_ALIGN(type, name) type name