diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-11-17 18:52:16 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-11-17 18:52:16 +0100 |
commit | da37678acdbac0ecef6d660e90357393a9374633 (patch) | |
tree | dd795c05346d89f93045d8529d7659a55ebc00f3 | |
parent | 37cc71e0e7754cdd90a17e1bb466e8e952fb9a14 (diff) |
win32: fix mutex.h to build with win32/mingw
-rw-r--r-- | mutex.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,9 +33,9 @@ typedef CRITICAL_SECTION mutex_t; typedef CONDITION_VARIABLE condition_t; #define CONDITION_INIT(cond) InitializeConditionVariable(&cond) #define CONDITION_WAIT(cond, mutex) \ - SleepConditionVariableCS(&cond, &mutex, INFINTE) + SleepConditionVariableCS(&cond, &mutex, INFINITE) #define CONDITION_NOTIFY(cond) WakeConditionVariable(&cond) -typedef uint32_t thread_t; +typedef DWORD thread_t; typedef HANDLE thread_status_t; #define THREAD_CREATE(tid, func, arg) \ CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)func, arg, 0, &tid) |