Mercurial > sdl-ios-xcode
comparison src/thread/pthread/SDL_syssem.c @ 1487:dc6b59e925a2
Cleaning up warnings on MacOS X
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 09 Mar 2006 06:33:21 +0000 |
parents | d910939febfa |
children | aee7ea396f59 |
comparison
equal
deleted
inserted
replaced
1486:9d77fc9d0ace | 1487:dc6b59e925a2 |
---|---|
29 | 29 |
30 /* Wrapper around POSIX 1003.1b semaphores */ | 30 /* Wrapper around POSIX 1003.1b semaphores */ |
31 | 31 |
32 #ifdef __MACOSX__ | 32 #ifdef __MACOSX__ |
33 #define USE_NAMED_SEMAPHORES 1 | 33 #define USE_NAMED_SEMAPHORES 1 |
34 #include <unistd.h> | |
34 #endif | 35 #endif |
35 | 36 |
36 struct SDL_semaphore { | 37 struct SDL_semaphore { |
37 sem_t *sem; | 38 sem_t *sem; |
38 #if !USE_NAMED_SEMAPHORES | 39 #if !USE_NAMED_SEMAPHORES |