Mercurial > sdl-ios-xcode
diff src/thread/irix/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 | ad887c988713 |
line wrap: on
line diff
--- a/src/thread/irix/SDL_syssem.c Tue Feb 21 08:34:45 2006 +0000 +++ b/src/thread/irix/SDL_syssem.c Tue Feb 21 08:46:50 2006 +0000 @@ -19,6 +19,7 @@ Sam Lantinga slouken@libsdl.org */ +#include "SDL_config.h" #include "SDL_thread.h" #include "SDL_timer.h" @@ -103,7 +104,7 @@ void SDL_DestroySemaphore(SDL_sem *sem) { if ( sem ) { -#ifdef _SGI_SOURCE +#ifdef __IRIX__ semctl(sem->id, 0, IPC_RMID); #else union semun dummy; @@ -193,7 +194,7 @@ value = 0; if ( sem ) { tryagain: -#ifdef _SGI_SOURCE +#ifdef __IRIX__ semval = semctl(sem->id, 0, GETVAL); #else {