From 7ea1670a9f0d10bfd648736cf52709c72cdb8130 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 22 Feb 2011 22:17:44 -0800 Subject: [PATCH] Fixed altivec.h include on Mac OS X --- include/SDL_cpuinfo.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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"