# HG changeset patch # User Ryan C. Gordon # Date 1252761327 0 # Node ID 5bacec0933f55c32870c2a636db820458be85646 # Parent cb2d5514efb32953b7e19351cf46bc9c771621d7 Fixed compiler warnings on Mac OS X 10.6 SDK. diff -r cb2d5514efb3 -r 5bacec0933f5 src/stdlib/SDL_qsort.c --- a/src/stdlib/SDL_qsort.c Sat Sep 12 13:10:16 2009 +0000 +++ b/src/stdlib/SDL_qsort.c Sat Sep 12 13:15:27 2009 +0000 @@ -50,11 +50,29 @@ */ #include "SDL_stdinc.h" +#ifdef assert +#undef assert +#endif #define assert(X) +#ifdef malloc +#undef malloc +#endif #define malloc SDL_malloc +#ifdef free +#undef free +#endif #define free SDL_free +#ifdef memcpy +#undef memcpy +#endif #define memcpy SDL_memcpy +#ifdef memmove +#undef memmove +#endif #define memmove SDL_memmove +#ifdef qsort +#undef qsort +#endif #define qsort SDL_qsort