diff src/thread/riscos/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/riscos/SDL_sysmutex.c	Tue Feb 07 07:03:29 2006 +0000
+++ b/src/thread/riscos/SDL_sysmutex.c	Tue Feb 07 09:29:18 2006 +0000
@@ -26,10 +26,9 @@
 #include "../generic/SDL_sysmutex.c"
 #else
 
-#include <stdlib.h>
-#include <stdio.h>
 #include <pthread.h>
 
+#include "SDL_stdlib.h"
 #include "SDL_error.h"
 #include "SDL_thread.h"
 
@@ -47,7 +46,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);
 #ifdef PTHREAD_NO_RECURSIVE_MUTEX