mirror of
https://github.com/encounter/SDL.git
synced 2025-12-09 05:27:48 +00:00
Check for immintrin.h before using it in SDL_cpuinfo.h
This commit is contained in:
@@ -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++ */
|
||||
|
||||
Reference in New Issue
Block a user