diff options
Diffstat (limited to '')
| -rw-r--r-- | src/common/common_funcs.h | 4 | ||||
| -rw-r--r-- | src/common/common_types.h | 2 | ||||
| -rw-r--r-- | src/common/logging/log.h | 4 | ||||
| -rw-r--r-- | src/common/memory_util.cpp | 11 | ||||
| -rw-r--r-- | src/common/memory_util.h | 4 | ||||
| -rw-r--r-- | src/common/misc.cpp | 5 | ||||
| -rw-r--r-- | src/common/swap.h | 10 | ||||
| -rw-r--r-- | src/core/file_sys/file_backend.h | 2 | ||||
| -rw-r--r-- | src/core/memory.cpp | 3 | ||||
| -rw-r--r-- | src/core/memory.h | 2 |
10 files changed, 22 insertions, 25 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index 91b74c6bc..cc74a228e 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h | |||
| @@ -5,8 +5,6 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include "common_types.h" | 7 | #include "common_types.h" |
| 8 | #include <cstdlib> | ||
| 9 | |||
| 10 | 8 | ||
| 11 | #define b2(x) ( (x) | ( (x) >> 1) ) | 9 | #define b2(x) ( (x) | ( (x) >> 1) ) |
| 12 | #define b4(x) ( b2(x) | ( b2(x) >> 2) ) | 10 | #define b4(x) ( b2(x) | ( b2(x) >> 2) ) |
| @@ -43,8 +41,6 @@ | |||
| 43 | 41 | ||
| 44 | #ifndef _MSC_VER | 42 | #ifndef _MSC_VER |
| 45 | 43 | ||
| 46 | #include <errno.h> | ||
| 47 | |||
| 48 | #if defined(__x86_64__) || defined(_M_X64) | 44 | #if defined(__x86_64__) || defined(_M_X64) |
| 49 | #define Crash() __asm__ __volatile__("int $3") | 45 | #define Crash() __asm__ __volatile__("int $3") |
| 50 | #elif defined(_M_ARM) | 46 | #elif defined(_M_ARM) |
diff --git a/src/common/common_types.h b/src/common/common_types.h index f6de0adfc..ebfd7824a 100644 --- a/src/common/common_types.h +++ b/src/common/common_types.h | |||
| @@ -24,9 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | #pragma once | 25 | #pragma once |
| 26 | 26 | ||
| 27 | #include <cmath> | ||
| 28 | #include <cstdint> | 27 | #include <cstdint> |
| 29 | #include <cstdlib> | ||
| 30 | 28 | ||
| 31 | #ifdef _MSC_VER | 29 | #ifdef _MSC_VER |
| 32 | #ifndef __func__ | 30 | #ifndef __func__ |
diff --git a/src/common/logging/log.h b/src/common/logging/log.h index 5b3a731e9..e16dde7fc 100644 --- a/src/common/logging/log.h +++ b/src/common/logging/log.h | |||
| @@ -4,10 +4,6 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <cassert> | ||
| 8 | #include <chrono> | ||
| 9 | #include <string> | ||
| 10 | |||
| 11 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 12 | 8 | ||
| 13 | namespace Log { | 9 | namespace Log { |
diff --git a/src/common/memory_util.cpp b/src/common/memory_util.cpp index 20b791a10..2b3ace528 100644 --- a/src/common/memory_util.cpp +++ b/src/common/memory_util.cpp | |||
| @@ -3,14 +3,17 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | #include "common/common_funcs.h" | ||
| 7 | #include "common/logging/log.h" | 6 | #include "common/logging/log.h" |
| 8 | #include "common/memory_util.h" | 7 | #include "common/memory_util.h" |
| 9 | #include "common/string_util.h" | ||
| 10 | 8 | ||
| 11 | #ifdef _WIN32 | 9 | #ifdef _WIN32 |
| 12 | #include <windows.h> | 10 | #include <windows.h> |
| 13 | #include <psapi.h> | 11 | #include <psapi.h> |
| 12 | #include "common/common_funcs.h" | ||
| 13 | #include "common/string_util.h" | ||
| 14 | #else | ||
| 15 | #include <cstdlib> | ||
| 16 | #include <sys/mman.h> | ||
| 14 | #endif | 17 | #endif |
| 15 | 18 | ||
| 16 | #if !defined(_WIN32) && defined(__x86_64__) && !defined(MAP_32BIT) | 19 | #if !defined(_WIN32) && defined(__x86_64__) && !defined(MAP_32BIT) |
diff --git a/src/common/memory_util.h b/src/common/memory_util.h index 9fdbf1f12..9bf37c44f 100644 --- a/src/common/memory_util.h +++ b/src/common/memory_util.h | |||
| @@ -4,9 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #ifndef _WIN32 | 7 | #include <cstddef> |
| 8 | #include <sys/mman.h> | ||
| 9 | #endif | ||
| 10 | #include <string> | 8 | #include <string> |
| 11 | 9 | ||
| 12 | void* AllocateExecutableMemory(size_t size, bool low = true); | 10 | void* AllocateExecutableMemory(size_t size, bool low = true); |
diff --git a/src/common/misc.cpp b/src/common/misc.cpp index 53cacf37c..d2a049b63 100644 --- a/src/common/misc.cpp +++ b/src/common/misc.cpp | |||
| @@ -2,12 +2,13 @@ | |||
| 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 "common/common_funcs.h" | 5 | #include <cstddef> |
| 6 | 6 | ||
| 7 | #ifdef _WIN32 | 7 | #ifdef _WIN32 |
| 8 | #include <windows.h> | 8 | #include <windows.h> |
| 9 | #else | 9 | #else |
| 10 | #include <string.h> | 10 | #include <cerrno> |
| 11 | #include <cstring> | ||
| 11 | #endif | 12 | #endif |
| 12 | 13 | ||
| 13 | // Neither Android nor OS X support TLS | 14 | // Neither Android nor OS X support TLS |
diff --git a/src/common/swap.h b/src/common/swap.h index 588cebc70..b92e5bfa4 100644 --- a/src/common/swap.h +++ b/src/common/swap.h | |||
| @@ -17,12 +17,16 @@ | |||
| 17 | 17 | ||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #if defined(__linux__) | 20 | #if defined(_MSC_VER) |
| 21 | #include <byteswap.h> | 21 | #include <cstdlib> |
| 22 | #elif defined(__linux__) | ||
| 23 | #include <byteswap.h> | ||
| 22 | #elif defined(__FreeBSD__) | 24 | #elif defined(__FreeBSD__) |
| 23 | #include <sys/endian.h> | 25 | #include <sys/endian.h> |
| 24 | #endif | 26 | #endif |
| 25 | 27 | ||
| 28 | #include "common/common_types.h" | ||
| 29 | |||
| 26 | // GCC 4.6+ | 30 | // GCC 4.6+ |
| 27 | #if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) | 31 | #if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) |
| 28 | 32 | ||
diff --git a/src/core/file_sys/file_backend.h b/src/core/file_sys/file_backend.h index 0fcff1845..f5f72c722 100644 --- a/src/core/file_sys/file_backend.h +++ b/src/core/file_sys/file_backend.h | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <cstddef> | ||
| 8 | |||
| 7 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 8 | 10 | ||
| 9 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 11 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 28844a915..172ae9054 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp | |||
| @@ -9,9 +9,6 @@ | |||
| 9 | #include "common/logging/log.h" | 9 | #include "common/logging/log.h" |
| 10 | #include "common/swap.h" | 10 | #include "common/swap.h" |
| 11 | 11 | ||
| 12 | #include "core/hle/config_mem.h" | ||
| 13 | #include "core/hle/shared_page.h" | ||
| 14 | #include "core/hw/hw.h" | ||
| 15 | #include "core/mem_map.h" | 12 | #include "core/mem_map.h" |
| 16 | #include "core/memory.h" | 13 | #include "core/memory.h" |
| 17 | #include "core/memory_setup.h" | 14 | #include "core/memory_setup.h" |
diff --git a/src/core/memory.h b/src/core/memory.h index 0b8ff9ec4..418609de0 100644 --- a/src/core/memory.h +++ b/src/core/memory.h | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <cstddef> | ||
| 8 | |||
| 7 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 8 | 10 | ||
| 9 | namespace Memory { | 11 | namespace Memory { |