src/cpuinfo/SDL_cpuinfo.c
changeset 1487 dc6b59e925a2
parent 1442 e3242177fe4a
child 1590 96d8c3fec479
--- a/src/cpuinfo/SDL_cpuinfo.c	Wed Mar 08 18:30:12 2006 +0000
+++ b/src/cpuinfo/SDL_cpuinfo.c	Thu Mar 09 06:33:21 2006 +0000
@@ -26,15 +26,13 @@
 #include "SDL.h"
 #include "SDL_cpuinfo.h"
 
-#if SDL_ALTIVEC_BLITTERS && HAVE_SETJMP
+#ifdef __MACOSX__
+#include <sys/sysctl.h> /* For AltiVec check */
+#elif SDL_ALTIVEC_BLITTERS && HAVE_SETJMP
 #include <signal.h>
 #include <setjmp.h>
 #endif
 
-#ifdef __MACOSX__
-#include <sys/sysctl.h> /* For AltiVec check */
-#endif
-
 #define CPU_HAS_RDTSC	0x00000001
 #define CPU_HAS_MMX	0x00000002
 #define CPU_HAS_MMXEXT	0x00000004
@@ -44,7 +42,7 @@
 #define CPU_HAS_SSE2	0x00000080
 #define CPU_HAS_ALTIVEC	0x00000100
 
-#if SDL_ALTIVEC_BLITTERS && HAVE_SETJMP
+#if SDL_ALTIVEC_BLITTERS && HAVE_SETJMP && !__MACOSX__
 /* This is the brute force way of detecting instruction sets...
    the idea is borrowed from the libmpeg2 library - thanks!
  */