src/stdlib/SDL_qsort.c
changeset 7003 eeaf77005c30
parent 6281 e46d6f4b469e
child 7351 668a3dc28361
     1.1 --- a/src/stdlib/SDL_qsort.c	Fri Mar 15 01:02:30 2013 -0400
     1.2 +++ b/src/stdlib/SDL_qsort.c	Fri Mar 15 01:01:20 2013 -0400
     1.3 @@ -51,6 +51,15 @@
     1.4  #include "SDL_stdinc.h"
     1.5  #include "SDL_assert.h"
     1.6  
     1.7 +#ifdef SDL_qsort
     1.8 +#undef SDL_qsort
     1.9 +void
    1.10 +SDL_qsort(void *base, size_t nmemb, size_t size, int (*compare) (const void *, const void *))
    1.11 +{
    1.12 +    SDL_qsort_inline(base, nmemb, size, compare);
    1.13 +}
    1.14 +#else
    1.15 +
    1.16  #ifdef assert
    1.17  #undef assert
    1.18  #endif
    1.19 @@ -76,9 +85,6 @@
    1.20  #endif
    1.21  #define qsort	SDL_qsort
    1.22  
    1.23 -
    1.24 -#ifndef HAVE_QSORT
    1.25 -
    1.26  static const char _ID[] = "<qsort.c gjm 1.12 1998-03-19>";
    1.27  
    1.28  /* How many bytes are there per word? (Must be a power of 2,
    1.29 @@ -466,5 +472,6 @@
    1.30          qsort_words(base, nmemb, compare);
    1.31  }
    1.32  
    1.33 -#endif /* !HAVE_QSORT */
    1.34 +#endif /* !SDL_qsort */
    1.35 +
    1.36  /* vi: set ts=4 sw=4 expandtab: */