diff include/SDL_stdinc.h @ 2157:75a6c5deba84

Fixed bug #451 SDL_memset4 copies a 32-bit value, not an 8-bit value.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 08 Jul 2007 14:24:55 +0000
parents e906da4414a3
children 65bb3dd0b350
line wrap: on
line diff
--- 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;						\