diff src/video/nanox/SDL_nxmouse.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_nxmouse.c	Tue Feb 07 07:03:29 2006 +0000
+++ b/src/video/nanox/SDL_nxmouse.c	Tue Feb 07 09:29:18 2006 +0000
@@ -24,8 +24,7 @@
     clare@setabox.com
 */
 
-#include <stdlib.h>
-
+#include "SDL_stdlib.h"
 #include "SDL_error.h"
 #include "SDL_events_c.h"
 
@@ -43,7 +42,7 @@
 
     Dprintf ("enter NX_CreateWMCursor\n") ;
 
-    cursor = (WMcursor *) malloc (sizeof (WMcursor)) ;
+    cursor = (WMcursor *) SDL_malloc (sizeof (WMcursor)) ;
     if (cursor == NULL) {
         SDL_OutOfMemory () ;
         return NULL ;
@@ -56,7 +55,7 @@
 void NX_FreeWMCursor (_THIS, WMcursor * cursor)
 {
     Dprintf ("NX_FreeWMCursor\n") ;
-    free (cursor) ;
+    SDL_free (cursor) ;
     return ;
 }