diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2013-10-25 11:16:16 +0200 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2013-10-25 11:16:16 +0200 |
commit | 41864c0725ec5e9c929911fd8f41c34c4cbacf27 (patch) | |
tree | 556d4cd43fcbd29d87650a2b60ca0e2073d0e91f /src | |
parent | bb7bcfbec6c0c69c2031452aa04a0df57cced6bb (diff) | |
download | lanes-41864c0725ec5e9c929911fd8f41c34c4cbacf27.tar.gz lanes-41864c0725ec5e9c929911fd8f41c34c4cbacf27.tar.bz2 lanes-41864c0725ec5e9c929911fd8f41c34c4cbacf27.zip |
Fix windows build for WINVER > 0x400
Diffstat (limited to 'src')
-rw-r--r-- | src/threading.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threading.h b/src/threading.h index d2320aa..7d94f26 100644 --- a/src/threading.h +++ b/src/threading.h | |||
@@ -97,7 +97,7 @@ enum e_status { PENDING, RUNNING, WAITING, DONE, ERROR_ST, CANCELLED }; | |||
97 | #define SIGNAL_T CONDITION_VARIABLE | 97 | #define SIGNAL_T CONDITION_VARIABLE |
98 | #define MUTEX_T CRITICAL_SECTION | 98 | #define MUTEX_T CRITICAL_SECTION |
99 | #define MUTEX_INIT( ref) InitializeCriticalSection( ref) | 99 | #define MUTEX_INIT( ref) InitializeCriticalSection( ref) |
100 | #define MUTEX_FREE( ref) do{ DeleteCriticalSection( ref); *ref = INVALID_HANDLE_VALUE;} while(0) | 100 | #define MUTEX_FREE( ref) DeleteCriticalSection( ref) |
101 | #define MUTEX_LOCK( ref) EnterCriticalSection( ref) | 101 | #define MUTEX_LOCK( ref) EnterCriticalSection( ref) |
102 | #define MUTEX_UNLOCK( ref) LeaveCriticalSection( ref) | 102 | #define MUTEX_UNLOCK( ref) LeaveCriticalSection( ref) |
103 | 103 | ||