diff options
author | David Robillard <d@drobilla.net> | 2012-08-06 00:18:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-06 00:18:27 +0000 |
commit | e3576ac38806e22e8a49246aecf08fccc8af034c (patch) | |
tree | 5ce84f929b3ecef28b16d7f6c58edc77be5dc6dc /zix | |
parent | 41b657b09b7e9beeed3cec4107fa39b962f41ef2 (diff) | |
download | zix-e3576ac38806e22e8a49246aecf08fccc8af034c.tar.gz zix-e3576ac38806e22e8a49246aecf08fccc8af034c.tar.bz2 zix-e3576ac38806e22e8a49246aecf08fccc8af034c.zip |
Windows portability fixes.
git-svn-id: http://svn.drobilla.net/zix/trunk@69 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'zix')
-rw-r--r-- | zix/sem.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,6 +20,7 @@ #ifdef __APPLE__ # include <mach/mach.h> #elif defined(_WIN32) +# include <limits.h> # include <windows.h> #else # include <semaphore.h> @@ -174,7 +175,7 @@ zix_sem_wait(ZixSem* sem) static inline bool zix_sem_try_wait(ZixSem* sem) { - WaitForSingleObject(sem->sem, 0); + return WaitForSingleObject(sem->sem, 0) == WAIT_OBJECT_0; } #else /* !defined(__APPLE__) && !defined(_WIN32) */ |