Check for immintrin.h before using it in SDL_cpuinfo.h
This commit is contained in:
parent
fb4a93f4a6
commit
aef30f74b7
6 changed files with 46 additions and 5 deletions
|
@ -59,10 +59,26 @@
|
|||
#ifdef __3dNOW__
|
||||
#include <mm3dnow.h>
|
||||
#endif
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
#if HAVE_IMMINTRIN_H
|
||||
#include <immintrin.h>
|
||||
#else
|
||||
#ifdef __MMX__
|
||||
#include <mmintrin.h>
|
||||
#endif
|
||||
#ifdef __3dNOW__
|
||||
#include <mm3dnow.h>
|
||||
#endif
|
||||
#ifdef __SSE__
|
||||
#include <xmmintrin.h>
|
||||
#endif
|
||||
#ifdef __SSE2__
|
||||
#include <emmintrin.h>
|
||||
#endif
|
||||
#ifdef __SSE3__
|
||||
#include <pmmintrin.h>
|
||||
#endif
|
||||
#endif /* HAVE_IMMINTRIN_H */
|
||||
#endif /* compiler version */
|
||||
|
||||
#include "begin_code.h"
|
||||
/* Set up for C function definitions, even when using C++ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue