define __ARM_NEON for Windows only if _M_ARM or _M_ARM64 is defined. fixes Visual Studio builds.
authorOzkan Sezer <sezeroz@gmail.com>
Tue, 25 Jun 2019 11:47:02 +0300
changeset 12905a7eb3fe5cc41
parent 12904 a08fb896b104
child 12906 bd5a067d1fd8
define __ARM_NEON for Windows only if _M_ARM or _M_ARM64 is defined. fixes Visual Studio builds.
include/SDL_cpuinfo.h
     1.1 --- a/include/SDL_cpuinfo.h	Mon Jun 24 23:51:10 2019 +0300
     1.2 +++ b/include/SDL_cpuinfo.h	Tue Jun 25 11:47:02 2019 +0300
     1.3 @@ -70,13 +70,13 @@
     1.4  #    if defined(_M_ARM)
     1.5  #      include <armintr.h>
     1.6  #      include <arm_neon.h>
     1.7 +#      define __ARM_NEON 1 /* Set __ARM_NEON so that it can be used elsewhere, at compile time */
     1.8  #    endif
     1.9  #    if defined (_M_ARM64)
    1.10  #      include <armintr.h>
    1.11  #      include <arm_neon.h>
    1.12 +#      define __ARM_NEON 1 /* Set __ARM_NEON so that it can be used elsewhere, at compile time */
    1.13  #    endif
    1.14 -/* Set __ARM_NEON so that it can be used elsewhere, at compile time */
    1.15 -#    define __ARM_NEON 1
    1.16  #  endif
    1.17  #endif
    1.18  #if defined(__3dNOW__) && !defined(SDL_DISABLE_MM3DNOW_H)