Mercurial > sdl-ios-xcode
comparison src/thread/win32/SDL_syssem.c @ 4661:03dcb795c583
Merged changes from the main SDL codebase
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 12 Jul 2010 21:09:23 -0700 |
parents | 883a2f2ff43f |
children |
comparison
equal
deleted
inserted
replaced
4660:b15e7017409b | 4661:03dcb795c583 |
---|---|
37 #if defined(_WIN32_WCE) && (_WIN32_WCE < 300) | 37 #if defined(_WIN32_WCE) && (_WIN32_WCE < 300) |
38 SYNCHHANDLE id; | 38 SYNCHHANDLE id; |
39 #else | 39 #else |
40 HANDLE id; | 40 HANDLE id; |
41 #endif | 41 #endif |
42 Uint32 volatile count; | 42 LONG volatile count; |
43 }; | 43 }; |
44 | 44 |
45 | 45 |
46 /* Create a semaphore */ | 46 /* Create a semaphore */ |
47 SDL_sem * | 47 SDL_sem * |
141 { | 141 { |
142 if (!sem) { | 142 if (!sem) { |
143 SDL_SetError("Passed a NULL sem"); | 143 SDL_SetError("Passed a NULL sem"); |
144 return 0; | 144 return 0; |
145 } | 145 } |
146 return sem->count; | 146 return (Uint32)sem->count; |
147 } | 147 } |
148 | 148 |
149 int | 149 int |
150 SDL_SemPost(SDL_sem * sem) | 150 SDL_SemPost(SDL_sem * sem) |
151 { | 151 { |