From 282b2b939504de790f55a4c3965ff79f48c6f2e7 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 25 Jun 2019 11:47:02 +0300 Subject: [PATCH] define __ARM_NEON for Windows only if _M_ARM or _M_ARM64 is defined. fixes Visual Studio builds. --- include/SDL_cpuinfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SDL_cpuinfo.h b/include/SDL_cpuinfo.h index 1e12d7e24b685..296df01aacd67 100644 --- a/include/SDL_cpuinfo.h +++ b/include/SDL_cpuinfo.h @@ -70,13 +70,13 @@ # if defined(_M_ARM) # include # include +# define __ARM_NEON 1 /* Set __ARM_NEON so that it can be used elsewhere, at compile time */ # endif # if defined (_M_ARM64) # include # include +# define __ARM_NEON 1 /* Set __ARM_NEON so that it can be used elsewhere, at compile time */ # endif -/* Set __ARM_NEON so that it can be used elsewhere, at compile time */ -# define __ARM_NEON 1 # endif #endif #if defined(__3dNOW__) && !defined(SDL_DISABLE_MM3DNOW_H)