comparison src/thread/generic/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 #include "SDL_timer.h" 25 #include "SDL_timer.h"
26 #include "SDL_thread.h" 26 #include "SDL_thread.h"
27 #include "SDL_systhread_c.h" 27 #include "SDL_systhread_c.h"
28 28
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;
201 SDL_UnlockMutex(sem->count_lock); 201 SDL_UnlockMutex(sem->count_lock);
202 202
203 return 0; 203 return 0;
204 } 204 }
205 205
206 #endif /* DISABLE_THREADS */ 206 #endif /* SDL_THREADS_DISABLED */