diff options
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/alignment.h | 1 | ||||
| -rw-r--r-- | src/common/atomic_ops.h | 2 | ||||
| -rw-r--r-- | src/common/fs/file.cpp | 1 | ||||
| -rw-r--r-- | src/common/fs/fs_util.cpp | 2 | ||||
| -rw-r--r-- | src/common/host_memory.cpp | 1 | ||||
| -rw-r--r-- | src/common/thread.cpp | 1 | ||||
| -rw-r--r-- | src/common/uint128.h | 1 |
7 files changed, 9 insertions, 0 deletions
diff --git a/src/common/alignment.h b/src/common/alignment.h index e4653bf35..8570c7d3c 100644 --- a/src/common/alignment.h +++ b/src/common/alignment.h | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | #pragma once | 3 | #pragma once |
| 4 | 4 | ||
| 5 | #include <cstddef> | 5 | #include <cstddef> |
| 6 | #include <new> | ||
| 6 | #include <type_traits> | 7 | #include <type_traits> |
| 7 | 8 | ||
| 8 | namespace Common { | 9 | namespace Common { |
diff --git a/src/common/atomic_ops.h b/src/common/atomic_ops.h index c488489ea..b94d73c7a 100644 --- a/src/common/atomic_ops.h +++ b/src/common/atomic_ops.h | |||
| @@ -8,6 +8,8 @@ | |||
| 8 | 8 | ||
| 9 | #if _MSC_VER | 9 | #if _MSC_VER |
| 10 | #include <intrin.h> | 10 | #include <intrin.h> |
| 11 | #else | ||
| 12 | #include <cstring> | ||
| 11 | #endif | 13 | #endif |
| 12 | 14 | ||
| 13 | namespace Common { | 15 | namespace Common { |
diff --git a/src/common/fs/file.cpp b/src/common/fs/file.cpp index b89e785c2..5d71275ef 100644 --- a/src/common/fs/file.cpp +++ b/src/common/fs/file.cpp | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | 8 | ||
| 9 | #ifdef _WIN32 | 9 | #ifdef _WIN32 |
| 10 | #include <io.h> | 10 | #include <io.h> |
| 11 | #include <share.h> | ||
| 11 | #else | 12 | #else |
| 12 | #include <unistd.h> | 13 | #include <unistd.h> |
| 13 | #endif | 14 | #endif |
diff --git a/src/common/fs/fs_util.cpp b/src/common/fs/fs_util.cpp index 1f47c2310..0068112e6 100644 --- a/src/common/fs/fs_util.cpp +++ b/src/common/fs/fs_util.cpp | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <algorithm> | ||
| 6 | |||
| 5 | #include "common/fs/fs_util.h" | 7 | #include "common/fs/fs_util.h" |
| 6 | 8 | ||
| 7 | namespace Common::FS { | 9 | namespace Common::FS { |
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp index 229fbe91e..e829af1ac 100644 --- a/src/common/host_memory.cpp +++ b/src/common/host_memory.cpp | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | #include <fcntl.h> | 18 | #include <fcntl.h> |
| 19 | #include <sys/mman.h> | 19 | #include <sys/mman.h> |
| 20 | #include <unistd.h> | 20 | #include <unistd.h> |
| 21 | #include "common/scope_exit.h" | ||
| 21 | 22 | ||
| 22 | #endif // ^^^ Linux ^^^ | 23 | #endif // ^^^ Linux ^^^ |
| 23 | 24 | ||
diff --git a/src/common/thread.cpp b/src/common/thread.cpp index 91c8a8e13..946a1114d 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #include <string> | 5 | #include <string> |
| 6 | 6 | ||
| 7 | #include "common/error.h" | ||
| 7 | #include "common/logging/log.h" | 8 | #include "common/logging/log.h" |
| 8 | #include "common/thread.h" | 9 | #include "common/thread.h" |
| 9 | #ifdef __APPLE__ | 10 | #ifdef __APPLE__ |
diff --git a/src/common/uint128.h b/src/common/uint128.h index 1ed5d6507..ad1b90414 100644 --- a/src/common/uint128.h +++ b/src/common/uint128.h | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #pragma intrinsic(_umul128) | 12 | #pragma intrinsic(_umul128) |
| 13 | #pragma intrinsic(_udiv128) | 13 | #pragma intrinsic(_udiv128) |
| 14 | #else | 14 | #else |
| 15 | #include <cstring> | ||
| 15 | #include <x86intrin.h> | 16 | #include <x86intrin.h> |
| 16 | #endif | 17 | #endif |
| 17 | 18 | ||