src/cpuinfo/SDL_cpuinfo.c
changeset 3248 cde30895105d
parent 2984 0b160c970b7e
child 3314 8b01b0648f01
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Sat Sep 05 09:55:25 2009 +0000
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Sat Sep 05 10:39:18 2009 +0000
     1.3 @@ -25,7 +25,7 @@
     1.4  
     1.5  #include "SDL_cpuinfo.h"
     1.6  
     1.7 -#if defined(__MACOSX__) && defined(__ppc__)
     1.8 +#if defined(__MACOSX__) && (defined(__ppc__) || defined(__ppc64__))
     1.9  #include <sys/sysctl.h>         /* For AltiVec check */
    1.10  #elif SDL_ALTIVEC_BLITTERS && HAVE_SETJMP
    1.11  #include <signal.h>
    1.12 @@ -356,7 +356,7 @@
    1.13  CPU_haveAltiVec(void)
    1.14  {
    1.15      volatile int altivec = 0;
    1.16 -#if defined(__MACOSX__) && defined(__ppc__)
    1.17 +#if defined(__MACOSX__) && (defined(__ppc__) || defined(__ppc64__))
    1.18      int selectors[2] = { CTL_HW, HW_VECTORUNIT };
    1.19      int hasVectorUnit = 0;
    1.20      size_t length = sizeof(hasVectorUnit);