# HG changeset patch # User Sam Lantinga # Date 1183904695 0 # Node ID 75a6c5deba84efffbaaa9d9e1c750f8a043361a4 # Parent cd041eb7eb4a6b225339b4233dbefc3ead2d6ae7 Fixed bug #451 SDL_memset4 copies a 32-bit value, not an 8-bit value. diff -r cd041eb7eb4a -r 75a6c5deba84 include/SDL_stdinc.h --- a/include/SDL_stdinc.h Sun Jul 08 05:58:51 2007 +0000 +++ b/include/SDL_stdinc.h Sun Jul 08 14:24:55 2007 +0000 @@ -279,10 +279,7 @@ #define SDL_zero(x) SDL_memset(&(x), 0, sizeof((x))) #define SDL_zerop(x) SDL_memset((x), 0, sizeof(*(x))) -/* We can count on memset existing on Mac OS X and being well-tuned. */ -#if defined(__MACH__) && defined(__APPLE__) -#define SDL_memset4(dst, val, len) memset(dst, val, (len)*4) -#elif defined(__GNUC__) && defined(i386) +#if defined(__GNUC__) && defined(i386) #define SDL_memset4(dst, val, len) \ do { \ int u0, u1, u2; \