changeset 1590:96d8c3fec479

Don't detect Altivec on MacOS X Intel
author Sam Lantinga <slouken@libsdl.org>
date Wed, 22 Mar 2006 22:29:44 +0000
parents 34cca785be57
children 24247fe40188
files src/cpuinfo/SDL_cpuinfo.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpuinfo/SDL_cpuinfo.c	Wed Mar 22 11:13:58 2006 +0000
+++ b/src/cpuinfo/SDL_cpuinfo.c	Wed Mar 22 22:29:44 2006 +0000
@@ -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>
@@ -306,7 +306,7 @@
 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);