Skip to content

Commit bfab0a9

Browse files
committed
SDL_cpuinfo.h: only include immintrin.h for x86 targets.
Reference issue: libsdl-org/SDL_image#537 Reference issue: libsdl-org/SDL_mixer#648
1 parent f0a8e09 commit bfab0a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/SDL_cpuinfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ _m_prefetch(void *__P)
115115
#include <lasxintrin.h>
116116
#define __LASX__
117117
#endif
118-
#if defined(HAVE_IMMINTRIN_H) && !defined(SDL_DISABLE_IMMINTRIN_H)
118+
#if defined(HAVE_IMMINTRIN_H) && !defined(SDL_DISABLE_IMMINTRIN_H) && \
119+
(defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86))
119120
#include <immintrin.h>
120121
#else
121122
#if defined(__MMX__) && !defined(SDL_DISABLE_MMINTRIN_H)

0 commit comments

Comments
 (0)