Added 64-bit architectures to the fat build script

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403778
This commit is contained in:
Sam Lantinga 2009-09-05 10:39:18 +00:00
parent 1bd5e5471f
commit 0ee5fbe25d
3 changed files with 114 additions and 17 deletions

View file

@ -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 @@ static __inline__ int
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);