Mercurial > sdl-ios-xcode
diff src/cpuinfo/SDL_cpuinfo.c @ 795:275708f2e838
Check for altivec assembly support before trying to use it. :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 29 Jan 2004 16:15:12 +0000 |
parents | c20f08c4f437 |
children | dec19b813b04 |
line wrap: on
line diff
--- a/src/cpuinfo/SDL_cpuinfo.c Thu Jan 29 16:14:09 2004 +0000 +++ b/src/cpuinfo/SDL_cpuinfo.c Thu Jan 29 16:15:12 2004 +0000 @@ -236,7 +236,7 @@ int error = sysctl(selectors, 2, &hasVectorUnit, &length, NULL, 0); if( 0 == error ) altivec = (hasVectorUnit != 0); -#elseif defined(USE_SETJMP) && defined(__GNUC__) && defined(__powerpc__) +#elif defined(USE_SETJMP) && defined(GCC_ALTIVEC) void (*handler)(int sig); handler = signal(SIGILL, illegal_instruction); if ( setjmp(jmpbuf) == 0 ) {