2
0
Эх сурвалжийг харах

SDL_cpuinfo.h: only include immintrin.h for x86 targets.

Reference issue: https://github.com/libsdl-org/SDL_image/issues/537
Reference issue: https://github.com/libsdl-org/SDL_mixer/issues/648

(cherry picked from commit bfab0a968fd54250377f65232df5982e46ecc712)
Ozkan Sezer 4 сар өмнө
parent
commit
f54014e173
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      include/SDL_cpuinfo.h

+ 2 - 1
include/SDL_cpuinfo.h

@@ -115,7 +115,8 @@ _m_prefetch(void *__P)
 #include <lasxintrin.h>
 #define __LASX__
 #endif
-#if defined(HAVE_IMMINTRIN_H) && !defined(SDL_DISABLE_IMMINTRIN_H)
+#if defined(HAVE_IMMINTRIN_H) && !defined(SDL_DISABLE_IMMINTRIN_H) && \
+   (defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86))
 #include <immintrin.h>
 #else
 #if defined(__MMX__) && !defined(SDL_DISABLE_MMINTRIN_H)