Mercurial > sdl-ios-xcode
diff src/video/SDL_yuv_sw.c @ 1402:d910939febfa
Use consistent identifiers for the various platforms we support.
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 21 Feb 2006 08:46:50 +0000 |
parents | 19418e4422cb |
children | 40edc79b0926 |
line wrap: on
line diff
--- a/src/video/SDL_yuv_sw.c Tue Feb 21 08:34:45 2006 +0000 +++ b/src/video/SDL_yuv_sw.c Tue Feb 21 08:46:50 2006 +0000 @@ -19,6 +19,7 @@ Sam Lantinga slouken@libsdl.org */ +#include "SDL_config.h" /* This is the software implementation of the YUV video overlay support */ @@ -1058,7 +1059,7 @@ case SDL_YV12_OVERLAY: case SDL_IYUV_OVERLAY: if ( display->format->BytesPerPixel == 2 ) { -#if i386 && __GNUC__ && SDL_ASSEMBLY_BLITTERS +#if defined(__GNUC__) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES /* inline assembly functions */ if ( SDL_HasMMX() && (Rmask == 0xF800) && (Gmask == 0x07E0) && @@ -1080,7 +1081,7 @@ swdata->Display2X = Color24DitherYV12Mod2X; } if ( display->format->BytesPerPixel == 4 ) { -#if i386 && __GNUC__ && SDL_ASSEMBLY_BLITTERS +#if defined(__GNUC__) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES /* inline assembly functions */ if ( SDL_HasMMX() && (Rmask == 0x00FF0000) && (Gmask == 0x0000FF00) &&