Mercurial > sdl-ios-xcode
diff src/video/SDL_yuv_mmx.c @ 2197:2ff40f30af31
Merged r3261:3262 from branches/SDL-1.2: MMX/YUV with __OPTIMIZE__.
"Mac OS X/x86 won't build the MMX/YUV inline assembly without optimizations
enabled (not enough registers), so for now, we only build it if we see
the __OPTIMIZE__ #define, which GCC provides when you build at -O1 or higher."
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sat, 14 Jul 2007 07:28:45 +0000 |
parents | 46e373b27d6d |
children | 99210400e8b9 |
line wrap: on
line diff
--- a/src/video/SDL_yuv_mmx.c Sat Jul 14 07:05:19 2007 +0000 +++ b/src/video/SDL_yuv_mmx.c Sat Jul 14 07:28:45 2007 +0000 @@ -21,7 +21,7 @@ */ #include "SDL_config.h" -#if (__GNUC__ > 2) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES +#if (__GNUC__ > 2) && defined(__i386__) && __OPTIMIZE__ && SDL_ASSEMBLY_ROUTINES #include "SDL_stdinc.h"