Fixed compiler warnings on Mac OS X 10.6 SDK. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sat, 12 Sep 2009 13:15:27 +0000
branchSDL-1.2
changeset 41865bacec0933f5
parent 4185 cb2d5514efb3
child 4187 b8d7c7a46ff7
Fixed compiler warnings on Mac OS X 10.6 SDK.
src/stdlib/SDL_qsort.c
     1.1 --- a/src/stdlib/SDL_qsort.c	Sat Sep 12 13:10:16 2009 +0000
     1.2 +++ b/src/stdlib/SDL_qsort.c	Sat Sep 12 13:15:27 2009 +0000
     1.3 @@ -50,11 +50,29 @@
     1.4  */
     1.5  #include "SDL_stdinc.h"
     1.6  
     1.7 +#ifdef assert
     1.8 +#undef assert
     1.9 +#endif
    1.10  #define assert(X)
    1.11 +#ifdef malloc
    1.12 +#undef malloc
    1.13 +#endif
    1.14  #define malloc	SDL_malloc
    1.15 +#ifdef free
    1.16 +#undef free
    1.17 +#endif
    1.18  #define free	SDL_free
    1.19 +#ifdef memcpy
    1.20 +#undef memcpy
    1.21 +#endif
    1.22  #define memcpy	SDL_memcpy
    1.23 +#ifdef memmove
    1.24 +#undef memmove
    1.25 +#endif
    1.26  #define memmove	SDL_memmove
    1.27 +#ifdef qsort
    1.28 +#undef qsort
    1.29 +#endif
    1.30  #define qsort	SDL_qsort
    1.31  
    1.32