src/cpuinfo/SDL_cpuinfo.c
changeset 1590 96d8c3fec479
parent 1487 dc6b59e925a2
child 1662 782fd950bd46
child 1864 7bea26ad3130
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Wed Mar 22 11:13:58 2006 +0000
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Wed Mar 22 22:29:44 2006 +0000
     1.3 @@ -26,7 +26,7 @@
     1.4  #include "SDL.h"
     1.5  #include "SDL_cpuinfo.h"
     1.6  
     1.7 -#ifdef __MACOSX__
     1.8 +#if defined(__MACOSX__) && defined(__ppc__)
     1.9  #include <sys/sysctl.h> /* For AltiVec check */
    1.10  #elif SDL_ALTIVEC_BLITTERS && HAVE_SETJMP
    1.11  #include <signal.h>
    1.12 @@ -306,7 +306,7 @@
    1.13  static __inline__ int CPU_haveAltiVec(void)
    1.14  {
    1.15  	volatile int altivec = 0;
    1.16 -#ifdef __MACOSX__
    1.17 +#if defined(__MACOSX__) && defined(__ppc__)
    1.18  	int selectors[2] = { CTL_HW, HW_VECTORUNIT }; 
    1.19  	int hasVectorUnit = 0; 
    1.20  	size_t length = sizeof(hasVectorUnit);