diff src/video/directfb/SDL_DirectFB_yuv.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 c9b51268668f
children c71e05b4dc2e
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_yuv.c	Tue Feb 07 07:03:29 2006 +0000
+++ b/src/video/directfb/SDL_DirectFB_yuv.c	Tue Feb 07 09:29:18 2006 +0000
@@ -22,9 +22,7 @@
 
 /* This is the DirectFB implementation of YUV video overlays */
 
-#include <stdlib.h>
-#include <string.h>
-
+#include "SDL_stdlib.h"
 #include "SDL_error.h"
 #include "SDL_video.h"
 #include "SDL_DirectFB_yuv.h"
@@ -148,7 +146,7 @@
   struct private_yuvhwdata *hwdata;
 
   /* Create the overlay structure */
-  overlay = calloc (1, sizeof(SDL_Overlay));
+  overlay = SDL_calloc (1, sizeof(SDL_Overlay));
   if (!overlay)
     {
       SDL_OutOfMemory();
@@ -164,7 +162,7 @@
   overlay->hwfuncs = &directfb_yuvfuncs;
 
   /* Create the pixel data and lookup tables */
-  hwdata = calloc(1, sizeof(struct private_yuvhwdata));
+  hwdata = SDL_calloc(1, sizeof(struct private_yuvhwdata));
   overlay->hwdata = hwdata;
   if (!hwdata)
     {