Skip to content

Commit

Permalink
Don't detect Altivec on MacOS X Intel
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 22, 2006
1 parent e135810 commit 177bde8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpuinfo/SDL_cpuinfo.c
Expand Up @@ -26,7 +26,7 @@
#include "SDL.h"
#include "SDL_cpuinfo.h"

#ifdef __MACOSX__
#if defined(__MACOSX__) && defined(__ppc__)
#include <sys/sysctl.h> /* For AltiVec check */
#elif SDL_ALTIVEC_BLITTERS && HAVE_SETJMP
#include <signal.h>
Expand Down Expand Up @@ -306,7 +306,7 @@ static __inline__ int CPU_haveSSE2(void)
static __inline__ int CPU_haveAltiVec(void)
{
volatile int altivec = 0;
#ifdef __MACOSX__
#if defined(__MACOSX__) && defined(__ppc__)
int selectors[2] = { CTL_HW, HW_VECTORUNIT };
int hasVectorUnit = 0;
size_t length = sizeof(hasVectorUnit);
Expand Down

0 comments on commit 177bde8

Please sign in to comment.