aboutsummaryrefslogtreecommitdiffstats
path: root/common/threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/threads.h')
-rw-r--r--common/threads.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/common/threads.h b/common/threads.h
index ff571a66..1cdb5d8f 100644
--- a/common/threads.h
+++ b/common/threads.h
@@ -11,12 +11,9 @@
#define FORCE_ALIGN
#endif
-#ifdef _WIN32
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#elif defined(__APPLE__)
+#if defined(__APPLE__)
#include <dispatch/dispatch.h>
-#else
+#elif !defined(_WIN32)
#include <semaphore.h>
#endif
@@ -26,7 +23,7 @@ namespace al {
class semaphore {
#ifdef _WIN32
- using native_type = HANDLE;
+ using native_type = void*;
#elif defined(__APPLE__)
using native_type = dispatch_semaphore_t;
#else