comparison src/thread/pthread/SDL_syssem.c @ 1402:d910939febfa

Use consistent identifiers for the various platforms we support. Make sure every source file includes SDL_config.h, so the proper system headers are chosen.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 08:46:50 +0000
parents 19418e4422cb
children dc6b59e925a2
comparison
equal deleted inserted replaced
1401:1819fd069e89 1402:d910939febfa
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h"
22 23
23 #include <pthread.h> 24 #include <pthread.h>
24 #include <semaphore.h> 25 #include <semaphore.h>
25 26
26 #include "SDL_thread.h" 27 #include "SDL_thread.h"
27 #include "SDL_timer.h" 28 #include "SDL_timer.h"
28 29
29 /* Wrapper around POSIX 1003.1b semaphores */ 30 /* Wrapper around POSIX 1003.1b semaphores */
30 31
31 #if MACOSX 32 #ifdef __MACOSX__
32 #define USE_NAMED_SEMAPHORES 1 33 #define USE_NAMED_SEMAPHORES 1
33 #endif /* MACOSX */ 34 #endif
34 35
35 struct SDL_semaphore { 36 struct SDL_semaphore {
36 sem_t *sem; 37 sem_t *sem;
37 #if !USE_NAMED_SEMAPHORES 38 #if !USE_NAMED_SEMAPHORES
38 sem_t sem_data; 39 sem_t sem_data;