diff options
| author | 2015-06-20 22:45:15 +0100 | |
|---|---|---|
| committer | 2015-06-28 00:36:53 +0100 | |
| commit | 2a36edfd86cc15829b113466845ccab759731793 (patch) | |
| tree | 21cef3e088f5906df99f5d4832ed92df03723d12 /src/common/thread.cpp | |
| parent | Common: Fix string_util includes. (diff) | |
| download | yuzu-2a36edfd86cc15829b113466845ccab759731793.tar.gz yuzu-2a36edfd86cc15829b113466845ccab759731793.tar.xz yuzu-2a36edfd86cc15829b113466845ccab759731793.zip | |
Common: Cleanup thread includes.
Diffstat (limited to 'src/common/thread.cpp')
| -rw-r--r-- | src/common/thread.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/common/thread.cpp b/src/common/thread.cpp index 8bf005857..7bbf080bc 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp | |||
| @@ -5,11 +5,20 @@ | |||
| 5 | #include "common/thread.h" | 5 | #include "common/thread.h" |
| 6 | 6 | ||
| 7 | #ifdef __APPLE__ | 7 | #ifdef __APPLE__ |
| 8 | #include <mach/mach.h> | 8 | #include <mach/mach.h> |
| 9 | #elif defined(BSD4_4) || defined(__OpenBSD__) | ||
| 10 | #include <pthread_np.h> | ||
| 11 | #elif defined(_WIN32) | 9 | #elif defined(_WIN32) |
| 12 | #include <Windows.h> | 10 | #include <Windows.h> |
| 11 | #else | ||
| 12 | #if defined(BSD4_4) || defined(__OpenBSD__) | ||
| 13 | #include <pthread_np.h> | ||
| 14 | #else | ||
| 15 | #include <pthread.h> | ||
| 16 | #endif | ||
| 17 | #include <sched.h> | ||
| 18 | #endif | ||
| 19 | |||
| 20 | #ifndef _WIN32 | ||
| 21 | #include <unistd.h> | ||
| 13 | #endif | 22 | #endif |
| 14 | 23 | ||
| 15 | namespace Common | 24 | namespace Common |