aboutsummaryrefslogtreecommitdiffstats
path: root/common/threads.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-06-28 12:48:41 -0700
committerChris Robinson <[email protected]>2020-06-28 12:55:55 -0700
commitf81558c948e8dbc044176443c2455f6e2f3b5e08 (patch)
tree0da21d22244aefc40abb1ca5e02389272f6f84de /common/threads.h
parent31791c9997d06a3a315d2b936515f643430cd5e9 (diff)
Avoid including windows.h in threads.h
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