diff --git a/include/SDL_cpuinfo.h b/include/SDL_cpuinfo.h index e93a0ef7d..ef4d1d3c9 100644 --- a/include/SDL_cpuinfo.h +++ b/include/SDL_cpuinfo.h @@ -42,6 +42,14 @@ #elif defined(__MINGW64_VERSION_MAJOR) #include #else +#ifdef __ALTIVEC__ +#if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__) +#include +#undef vector +#undef pixel +#undef bool +#endif +#endif #ifdef __MMX__ #include #endif @@ -54,9 +62,6 @@ #ifdef __SSE2__ #include #endif -#ifdef HAVE_ALTIVEC_H -#include -#endif #endif #include "begin_code.h"