diff src/video/SDL_yuv_mmx.c @ 4064:940fddb81bea SDL-1.2

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:26:34 +0000
parents ee5a38285651
children a1b03ba2fcd0
line wrap: on
line diff
--- a/src/video/SDL_yuv_mmx.c	Sat Jul 14 07:06:46 2007 +0000
+++ b/src/video/SDL_yuv_mmx.c	Sat Jul 14 07:26:34 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"