Commit 95e9bf51 authored by Sam Lantinga's avatar Sam Lantinga

Don't detect Altivec on MacOS X Intel

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401595
parent be7a5193
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include "SDL.h" #include "SDL.h"
#include "SDL_cpuinfo.h" #include "SDL_cpuinfo.h"
#ifdef __MACOSX__ #if defined(__MACOSX__) && defined(__ppc__)
#include <sys/sysctl.h> /* For AltiVec check */ #include <sys/sysctl.h> /* For AltiVec check */
#elif SDL_ALTIVEC_BLITTERS && HAVE_SETJMP #elif SDL_ALTIVEC_BLITTERS && HAVE_SETJMP
#include <signal.h> #include <signal.h>
...@@ -306,7 +306,7 @@ static __inline__ int CPU_haveSSE2(void) ...@@ -306,7 +306,7 @@ static __inline__ int CPU_haveSSE2(void)
static __inline__ int CPU_haveAltiVec(void) static __inline__ int CPU_haveAltiVec(void)
{ {
volatile int altivec = 0; volatile int altivec = 0;
#ifdef __MACOSX__ #if defined(__MACOSX__) && defined(__ppc__)
int selectors[2] = { CTL_HW, HW_VECTORUNIT }; int selectors[2] = { CTL_HW, HW_VECTORUNIT };
int hasVectorUnit = 0; int hasVectorUnit = 0;
size_t length = sizeof(hasVectorUnit); size_t length = sizeof(hasVectorUnit);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment