diff src/thread/linux/SDL_sysmutex.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/thread/linux/SDL_sysmutex.c	Tue Feb 07 07:03:29 2006 +0000
+++ b/src/thread/linux/SDL_sysmutex.c	Tue Feb 07 09:29:18 2006 +0000
@@ -37,10 +37,9 @@
 
 #ifdef SDL_USE_PTHREADS
 
-#include <stdlib.h>
-#include <stdio.h>
 #include <pthread.h>
 
+#include "SDL_stdlib.h"
 #include "SDL_error.h"
 #include "SDL_thread.h"
 
@@ -59,7 +58,7 @@
 	pthread_mutexattr_t attr;
 
 	/* Allocate the structure */
-	mutex = (SDL_mutex *)calloc(1, sizeof(*mutex));
+	mutex = (SDL_mutex *)SDL_calloc(1, sizeof(*mutex));
 	if ( mutex ) {
 		pthread_mutexattr_init(&attr);
 #if defined(PTHREAD_RECURSIVE_MUTEX)