Fixed bug #451 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sun, 08 Jul 2007 14:24:27 +0000
branchSDL-1.2
changeset 4020 33d34b7ce689
parent 4019 fcf5834bdac3
child 4021 cbad710a6509
Fixed bug #451 SDL_memset4 copies a 32-bit value, not an 8-bit value.
include/SDL_stdinc.h
--- a/include/SDL_stdinc.h	Sun Jul 08 05:58:16 2007 +0000
+++ b/include/SDL_stdinc.h	Sun Jul 08 14:24:27 2007 +0000
@@ -238,10 +238,7 @@
 extern DECLSPEC void * SDLCALL SDL_memset(void *dst, int c, size_t len);
 #endif
 
-/* 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;						\