Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11modes.c @ 1338:604d73db6802
Removed uses of stdlib.h and string.h
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 09:29:18 +0000 |
parents | 3692456e7b0f |
children | c71e05b4dc2e |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11modes.c Tue Feb 07 07:03:29 2006 +0000 +++ b/src/video/x11/SDL_x11modes.c Tue Feb 07 09:29:18 2006 +0000 @@ -22,9 +22,10 @@ /* Utilities for getting and setting the X display mode */ -#include <stdlib.h> -#include <string.h> +#include <stdio.h> +#include "SDL_stdlib.h" +#include "SDL_string.h" #include "SDL_timer.h" #include "SDL_error.h" #include "SDL_events.h" @@ -359,7 +360,7 @@ } #endif - qsort(modes, nmodes, sizeof *modes, cmpmodes); + SDL_qsort(modes, nmodes, sizeof *modes, cmpmodes); SDL_modelist = (SDL_Rect **)SDL_malloc((nmodes+2)*sizeof(SDL_Rect *)); if ( SDL_modelist ) { n = 0;