summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2012-11-17 18:52:16 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-11-17 18:52:16 +0100
commitda37678acdbac0ecef6d660e90357393a9374633 (patch)
treedd795c05346d89f93045d8529d7659a55ebc00f3
parent37cc71e0e7754cdd90a17e1bb466e8e952fb9a14 (diff)
win32: fix mutex.h to build with win32/mingw
-rw-r--r--mutex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mutex.h b/mutex.h
index cb46aa7..69ae064 100644
--- a/mutex.h
+++ b/mutex.h
@@ -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)