瀏覽代碼

define __ARM_NEON for Windows only if _M_ARM or _M_ARM64 is defined. fixes Visual Studio builds.

Ozkan Sezer 6 年之前
父節點
當前提交
282b2b9395
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/SDL_cpuinfo.h

+ 2 - 2
include/SDL_cpuinfo.h

@@ -70,13 +70,13 @@
 #    if defined(_M_ARM)
 #    if defined(_M_ARM)
 #      include <armintr.h>
 #      include <armintr.h>
 #      include <arm_neon.h>
 #      include <arm_neon.h>
+#      define __ARM_NEON 1 /* Set __ARM_NEON so that it can be used elsewhere, at compile time */
 #    endif
 #    endif
 #    if defined (_M_ARM64)
 #    if defined (_M_ARM64)
 #      include <armintr.h>
 #      include <armintr.h>
 #      include <arm_neon.h>
 #      include <arm_neon.h>
+#      define __ARM_NEON 1 /* Set __ARM_NEON so that it can be used elsewhere, at compile time */
 #    endif
 #    endif
-/* Set __ARM_NEON so that it can be used elsewhere, at compile time */
-#    define __ARM_NEON 1
 #  endif
 #  endif
 #endif
 #endif
 #if defined(__3dNOW__) && !defined(SDL_DISABLE_MM3DNOW_H)
 #if defined(__3dNOW__) && !defined(SDL_DISABLE_MM3DNOW_H)