Mercurial > sdl-ios-xcode
comparison src/thread/riscos/SDL_syssem.c @ 1361:19418e4422cb
New configure-based build system. Still work in progress, but much improved
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 16 Feb 2006 10:11:48 +0000 |
parents | c71e05b4dc2e |
children | d910939febfa |
comparison
equal
deleted
inserted
replaced
1360:70a9cfb4cf1b | 1361:19418e4422cb |
---|---|
25 | 25 |
26 #include "SDL_timer.h" | 26 #include "SDL_timer.h" |
27 #include "SDL_thread.h" | 27 #include "SDL_thread.h" |
28 #include "SDL_systhread_c.h" | 28 #include "SDL_systhread_c.h" |
29 | 29 |
30 #ifdef DISABLE_THREADS | 30 #if !SDL_THREADS_DISABLED |
31 | 31 |
32 SDL_sem *SDL_CreateSemaphore(Uint32 initial_value) | 32 SDL_sem *SDL_CreateSemaphore(Uint32 initial_value) |
33 { | 33 { |
34 SDL_SetError("SDL not configured with thread support"); | 34 SDL_SetError("SDL not configured with thread support"); |
35 return (SDL_sem *)0; | 35 return (SDL_sem *)0; |
194 SDL_SetError("sem_post() failed"); | 194 SDL_SetError("sem_post() failed"); |
195 } | 195 } |
196 return retval; | 196 return retval; |
197 } | 197 } |
198 | 198 |
199 #endif /* DISABLE_THREADS */ | 199 #endif /* !SDL_THREADS_DISABLED */ |