diff --git a/include/SDL_cpuinfo.h b/include/SDL_cpuinfo.h index c7958a4ee..9323cf95b 100644 --- a/include/SDL_cpuinfo.h +++ b/include/SDL_cpuinfo.h @@ -51,30 +51,28 @@ #include #else #ifdef __ALTIVEC__ -#if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__) +#if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__) && !defined(SDL_DISABLE_ALTIVEC_H) #include #undef pixel +#undef bool #endif #endif -#ifdef __3dNOW__ +#if defined(__3dNOW__) && !defined(SDL_DISABLE_MM3DNOW_H) #include #endif -#if HAVE_IMMINTRIN_H +#if HAVE_IMMINTRIN_H && !defined(SDL_DISABLE_IMMINTRIN_H) #include #else -#ifdef __MMX__ +#if defined(__MMX__) && !defined(SDL_DISABLE_MMINTRIN_H) #include #endif -#ifdef __3dNOW__ -#include -#endif -#ifdef __SSE__ +#if defined(__SSE__) && !defined(SDL_DISABLE_XMMINTRIN_H) #include #endif -#ifdef __SSE2__ +#if defined(__SSE2__) && !defined(SDL_DISABLE_EMMINTRIN_H) #include #endif -#ifdef __SSE3__ +#if defined(__SSE3__) && !defined(SDL_DISABLE_PMMINTRIN_H) #include #endif #endif /* HAVE_IMMINTRIN_H */