Commit 18f74c6e152e4602adc3a7e88ec34f3469b35e70

Ryan C. Gordon 2016-02-15T03:21:26

Patched to compile on Visual Studio.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/stdlib/SDL_qsort.c b/src/stdlib/SDL_qsort.c
index b0a662f..8aa403f 100644
--- a/src/stdlib/SDL_qsort.c
+++ b/src/stdlib/SDL_qsort.c
@@ -27,6 +27,9 @@ SDL_qsort(void *base, size_t nmemb, size_t size, int (*compare) (const void *, c
 #define _PDCLIB_size_t size_t
 #endif
 
+#ifdef qsort
+#undef qsort
+#endif
 #define qsort SDL_qsort
 
 #define inline SDL_INLINE