Mercurial > sdl-ios-xcode
changeset 3616:0aaa7f52d1c6
Merged r4710:4711 from branches/SDL-1.2: Mac OS X SDL_stdlib qsort build fixes.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 06 Jan 2010 20:17:35 +0000 |
parents | 4a4371a7cd4f |
children | 023aa9699baa |
files | src/stdlib/SDL_qsort.c |
diffstat | 1 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/stdlib/SDL_qsort.c Wed Jan 06 07:45:58 2010 +0000 +++ b/src/stdlib/SDL_qsort.c Wed Jan 06 20:17:35 2010 +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