comparison src/thread/riscos/SDL_syssem.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
comparison
equal deleted inserted replaced
1337:c687f06c7473 1338:604d73db6802
21 */ 21 */
22 22
23 /* RISC OS semiphores based on linux code */ 23 /* RISC OS semiphores based on linux code */
24 24
25 25
26 #include <stdlib.h> 26 #include "SDL_stdlib.h"
27
28 #include "SDL_error.h" 27 #include "SDL_error.h"
29 #include "SDL_timer.h" 28 #include "SDL_timer.h"
30 #include "SDL_thread.h" 29 #include "SDL_thread.h"
31
32 #include "SDL_systhread_c.h" 30 #include "SDL_systhread_c.h"
33 31
34 #ifdef DISABLE_THREADS 32 #ifdef DISABLE_THREADS
35 33
36 SDL_sem *SDL_CreateSemaphore(Uint32 initial_value) 34 SDL_sem *SDL_CreateSemaphore(Uint32 initial_value)
74 } 72 }
75 73
76 #else 74 #else
77 75
78 76
79 #include <stdio.h>
80 #include <stdlib.h>
81 #include <unistd.h> /* For getpid() */ 77 #include <unistd.h> /* For getpid() */
82 #include <pthread.h> 78 #include <pthread.h>
83 #include <semaphore.h> 79 #include <semaphore.h>
84 80
85 struct SDL_semaphore { 81 struct SDL_semaphore {