Mercurial > sdl-ios-xcode
diff src/cpuinfo/SDL_cpuinfo.c @ 1487:dc6b59e925a2
Cleaning up warnings on MacOS X
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 09 Mar 2006 06:33:21 +0000 |
parents | e3242177fe4a |
children | 96d8c3fec479 |
line wrap: on
line diff
--- 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! */