include/SDL_cpuinfo.h
changeset 5390 fefd4f7b5214
parent 5389 24903690f48a
child 5407 40c9d744e595
     1.1 --- a/include/SDL_cpuinfo.h	Tue Feb 22 21:44:36 2011 -0800
     1.2 +++ b/include/SDL_cpuinfo.h	Tue Feb 22 22:17:44 2011 -0800
     1.3 @@ -42,6 +42,14 @@
     1.4  #elif defined(__MINGW64_VERSION_MAJOR)
     1.5  #include <intrin.h>
     1.6  #else
     1.7 +#ifdef __ALTIVEC__
     1.8 +#if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__)
     1.9 +#include <altivec.h>
    1.10 +#undef vector
    1.11 +#undef pixel
    1.12 +#undef bool
    1.13 +#endif
    1.14 +#endif
    1.15  #ifdef __MMX__
    1.16  #include <mmintrin.h>
    1.17  #endif
    1.18 @@ -54,9 +62,6 @@
    1.19  #ifdef __SSE2__
    1.20  #include <emmintrin.h>
    1.21  #endif
    1.22 -#ifdef HAVE_ALTIVEC_H
    1.23 -#include <altivec.h>
    1.24 -#endif
    1.25  #endif
    1.26  
    1.27  #include "begin_code.h"