diff src/video/nanox/SDL_nxmodes.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 b8d311d90021
children c71e05b4dc2e
line wrap: on
line diff
--- a/src/video/nanox/SDL_nxmodes.c	Tue Feb 07 07:03:29 2006 +0000
+++ b/src/video/nanox/SDL_nxmodes.c	Tue Feb 07 09:29:18 2006 +0000
@@ -24,8 +24,8 @@
     clare@setabox.com
 */
 
-#include <stdlib.h>
-
+#include "SDL_stdlib.h"
+#include "SDL_string.h"
 #include "SDL_nxmodes_c.h"
 
 SDL_Rect ** NX_ListModes (_THIS, SDL_PixelFormat * format, Uint32 flags)
@@ -46,9 +46,9 @@
 
     if (SDL_modelist) {
         for (i = 0; SDL_modelist [i]; ++ i) {
-            free (SDL_modelist [i]) ;
+            SDL_free (SDL_modelist [i]) ;
         }
-        free (SDL_modelist) ;
+        SDL_free (SDL_modelist) ;
         SDL_modelist = NULL;
     }
 }