Skip to content

Commit

Permalink
define __ARM_NEON for Windows only if _M_ARM or _M_ARM64 is defined. …
Browse files Browse the repository at this point in the history
…fixes Visual Studio builds.
  • Loading branch information
sezero committed Jun 25, 2019
1 parent 83a713f commit 282b2b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/SDL_cpuinfo.h
Expand Up @@ -70,13 +70,13 @@
# if defined(_M_ARM)
# include <armintr.h>
# include <arm_neon.h>
# define __ARM_NEON 1 /* Set __ARM_NEON so that it can be used elsewhere, at compile time */
# endif
# if defined (_M_ARM64)
# include <armintr.h>
# include <arm_neon.h>
# 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)
Expand Down

0 comments on commit 282b2b9

Please sign in to comment.