comparison 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
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 "SDL_thread.h" 24 #include "SDL_thread.h"
24 #include "SDL_timer.h" 25 #include "SDL_timer.h"
25 26
26 27
101 } 102 }
102 103
103 void SDL_DestroySemaphore(SDL_sem *sem) 104 void SDL_DestroySemaphore(SDL_sem *sem)
104 { 105 {
105 if ( sem ) { 106 if ( sem ) {
106 #ifdef _SGI_SOURCE 107 #ifdef __IRIX__
107 semctl(sem->id, 0, IPC_RMID); 108 semctl(sem->id, 0, IPC_RMID);
108 #else 109 #else
109 union semun dummy; 110 union semun dummy;
110 dummy.val = 0; 111 dummy.val = 0;
111 semctl(sem->id, 0, IPC_RMID, dummy); 112 semctl(sem->id, 0, IPC_RMID, dummy);
191 Uint32 value; 192 Uint32 value;
192 193
193 value = 0; 194 value = 0;
194 if ( sem ) { 195 if ( sem ) {
195 tryagain: 196 tryagain:
196 #ifdef _SGI_SOURCE 197 #ifdef __IRIX__
197 semval = semctl(sem->id, 0, GETVAL); 198 semval = semctl(sem->id, 0, GETVAL);
198 #else 199 #else
199 { 200 {
200 union semun arg; 201 union semun arg;
201 arg.val = 0; 202 arg.val = 0;