diff src/cpuinfo/SDL_cpuinfo.c @ 3248:cde30895105d

Added 64-bit architectures to the fat build script
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Sep 2009 10:39:18 +0000
parents 0b160c970b7e
children 8b01b0648f01
line wrap: on
line diff
--- a/src/cpuinfo/SDL_cpuinfo.c	Sat Sep 05 09:55:25 2009 +0000
+++ b/src/cpuinfo/SDL_cpuinfo.c	Sat Sep 05 10:39:18 2009 +0000
@@ -25,7 +25,7 @@
 
 #include "SDL_cpuinfo.h"
 
-#if defined(__MACOSX__) && defined(__ppc__)
+#if defined(__MACOSX__) && (defined(__ppc__) || defined(__ppc64__))
 #include <sys/sysctl.h>         /* For AltiVec check */
 #elif SDL_ALTIVEC_BLITTERS && HAVE_SETJMP
 #include <signal.h>
@@ -356,7 +356,7 @@
 CPU_haveAltiVec(void)
 {
     volatile int altivec = 0;
-#if defined(__MACOSX__) && defined(__ppc__)
+#if defined(__MACOSX__) && (defined(__ppc__) || defined(__ppc64__))
     int selectors[2] = { CTL_HW, HW_VECTORUNIT };
     int hasVectorUnit = 0;
     size_t length = sizeof(hasVectorUnit);