diff options
Diffstat (limited to '')
| -rw-r--r-- | src/common/console_listener.cpp | 6 | ||||
| -rw-r--r-- | src/common/file_search.cpp | 4 | ||||
| -rw-r--r-- | src/common/file_util.cpp | 7 | ||||
| -rw-r--r-- | src/common/log_manager.cpp | 1 | ||||
| -rw-r--r-- | src/common/math_util.cpp | 3 | ||||
| -rw-r--r-- | src/common/mem_arena.cpp | 4 | ||||
| -rw-r--r-- | src/common/memory_util.cpp | 3 | ||||
| -rw-r--r-- | src/common/string_util.cpp | 4 | ||||
| -rw-r--r-- | src/common/thread.cpp | 1 | ||||
| -rw-r--r-- | src/common/utf8.cpp | 4 |
10 files changed, 3 insertions, 34 deletions
diff --git a/src/common/console_listener.cpp b/src/common/console_listener.cpp index 27697ef1f..6a89edd44 100644 --- a/src/common/console_listener.cpp +++ b/src/common/console_listener.cpp | |||
| @@ -3,14 +3,10 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | #include <cmath> | 6 | |
| 7 | #include <cstdio> | ||
| 8 | #include <string> | ||
| 9 | #ifdef _WIN32 | 7 | #ifdef _WIN32 |
| 10 | #include <windows.h> | 8 | #include <windows.h> |
| 11 | #include <array> | 9 | #include <array> |
| 12 | #else | ||
| 13 | #include <cstdarg> | ||
| 14 | #endif | 10 | #endif |
| 15 | 11 | ||
| 16 | #include "common/common.h" | 12 | #include "common/common.h" |
diff --git a/src/common/file_search.cpp b/src/common/file_search.cpp index a9d19477d..cd50ace75 100644 --- a/src/common/file_search.cpp +++ b/src/common/file_search.cpp | |||
| @@ -4,15 +4,13 @@ | |||
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | #include "common/common.h" | 6 | #include "common/common.h" |
| 7 | #include "common/common_paths.h" | 7 | |
| 8 | #ifndef _WIN32 | 8 | #ifndef _WIN32 |
| 9 | #include <sys/types.h> | ||
| 10 | #include <dirent.h> | 9 | #include <dirent.h> |
| 11 | #else | 10 | #else |
| 12 | #include <windows.h> | 11 | #include <windows.h> |
| 13 | #endif | 12 | #endif |
| 14 | 13 | ||
| 15 | #include <string> | ||
| 16 | #include <algorithm> | 14 | #include <algorithm> |
| 17 | 15 | ||
| 18 | #include "common/file_search.h" | 16 | #include "common/file_search.h" |
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index b6ff2e40b..04d222ca1 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp | |||
| @@ -4,9 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | #include "common/common.h" | 6 | #include "common/common.h" |
| 7 | #include "common/common_paths.h" | ||
| 8 | #include "common/file_util.h" | 7 | #include "common/file_util.h" |
| 9 | #include "common/string_util.h" | ||
| 10 | 8 | ||
| 11 | #ifdef _WIN32 | 9 | #ifdef _WIN32 |
| 12 | #include <windows.h> | 10 | #include <windows.h> |
| @@ -16,10 +14,7 @@ | |||
| 16 | #include <io.h> | 14 | #include <io.h> |
| 17 | #include <direct.h> // getcwd | 15 | #include <direct.h> // getcwd |
| 18 | #else | 16 | #else |
| 19 | #include <cerrno> | ||
| 20 | #include <cstdlib> | ||
| 21 | #include <sys/param.h> | 17 | #include <sys/param.h> |
| 22 | #include <sys/types.h> | ||
| 23 | #include <dirent.h> | 18 | #include <dirent.h> |
| 24 | #endif | 19 | #endif |
| 25 | 20 | ||
| @@ -32,8 +27,6 @@ | |||
| 32 | #include <algorithm> | 27 | #include <algorithm> |
| 33 | #include <sys/stat.h> | 28 | #include <sys/stat.h> |
| 34 | 29 | ||
| 35 | #include "common/string_util.h" | ||
| 36 | |||
| 37 | #ifndef S_ISDIR | 30 | #ifndef S_ISDIR |
| 38 | #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) | 31 | #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) |
| 39 | #endif | 32 | #endif |
diff --git a/src/common/log_manager.cpp b/src/common/log_manager.cpp index 4e1cb60bd..c2b5d0e2c 100644 --- a/src/common/log_manager.cpp +++ b/src/common/log_manager.cpp | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | #include "common/console_listener.h" | 8 | #include "common/console_listener.h" |
| 9 | #include "common/timer.h" | 9 | #include "common/timer.h" |
| 10 | #include "common/thread.h" | 10 | #include "common/thread.h" |
| 11 | #include "common/file_util.h" | ||
| 12 | 11 | ||
| 13 | void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, const char* file, int line, | 12 | void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, const char* file, int line, |
| 14 | const char* function, const char* fmt, ...) | 13 | const char* function, const char* fmt, ...) |
diff --git a/src/common/math_util.cpp b/src/common/math_util.cpp index 82eceab00..ab0e6b75c 100644 --- a/src/common/math_util.cpp +++ b/src/common/math_util.cpp | |||
| @@ -6,8 +6,7 @@ | |||
| 6 | #include "common/common.h" | 6 | #include "common/common.h" |
| 7 | #include "common/math_util.h" | 7 | #include "common/math_util.h" |
| 8 | 8 | ||
| 9 | #include <cmath> | 9 | #include <numeric> // Necessary on OS X, but not Linux |
| 10 | #include <numeric> | ||
| 11 | 10 | ||
| 12 | namespace MathUtil | 11 | namespace MathUtil |
| 13 | { | 12 | { |
diff --git a/src/common/mem_arena.cpp b/src/common/mem_arena.cpp index b76ac92d3..a456beb28 100644 --- a/src/common/mem_arena.cpp +++ b/src/common/mem_arena.cpp | |||
| @@ -22,11 +22,7 @@ | |||
| 22 | #include "common/string_util.h" | 22 | #include "common/string_util.h" |
| 23 | 23 | ||
| 24 | #ifndef _WIN32 | 24 | #ifndef _WIN32 |
| 25 | #include <sys/stat.h> | ||
| 26 | #include <fcntl.h> | 25 | #include <fcntl.h> |
| 27 | #include <unistd.h> | ||
| 28 | #include <cerrno> | ||
| 29 | #include <cstring> | ||
| 30 | #ifdef ANDROID | 26 | #ifdef ANDROID |
| 31 | #include <sys/ioctl.h> | 27 | #include <sys/ioctl.h> |
| 32 | #include <linux/ashmem.h> | 28 | #include <linux/ashmem.h> |
diff --git a/src/common/memory_util.cpp b/src/common/memory_util.cpp index e01e63175..45bf5a496 100644 --- a/src/common/memory_util.cpp +++ b/src/common/memory_util.cpp | |||
| @@ -10,9 +10,6 @@ | |||
| 10 | #ifdef _WIN32 | 10 | #ifdef _WIN32 |
| 11 | #include <windows.h> | 11 | #include <windows.h> |
| 12 | #include <psapi.h> | 12 | #include <psapi.h> |
| 13 | #else | ||
| 14 | #include <cerrno> | ||
| 15 | #include <cstdio> | ||
| 16 | #endif | 13 | #endif |
| 17 | 14 | ||
| 18 | #if !defined(_WIN32) && defined(__x86_64__) && !defined(MAP_32BIT) | 15 | #if !defined(_WIN32) && defined(__x86_64__) && !defined(MAP_32BIT) |
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index c1f22bda3..a3c7f479e 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp | |||
| @@ -3,17 +3,13 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | #include <cstdlib> | ||
| 7 | #include <cstdio> | ||
| 8 | 6 | ||
| 9 | #include "common/common.h" | 7 | #include "common/common.h" |
| 10 | #include "common/common_paths.h" | ||
| 11 | #include "common/string_util.h" | 8 | #include "common/string_util.h" |
| 12 | 9 | ||
| 13 | #ifdef _WIN32 | 10 | #ifdef _WIN32 |
| 14 | #include <Windows.h> | 11 | #include <Windows.h> |
| 15 | #else | 12 | #else |
| 16 | #include <cerrno> | ||
| 17 | #include <iconv.h> | 13 | #include <iconv.h> |
| 18 | #endif | 14 | #endif |
| 19 | 15 | ||
diff --git a/src/common/thread.cpp b/src/common/thread.cpp index 830795182..60d8ed075 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/thread.h" | 5 | #include "common/thread.h" |
| 6 | #include "common/common.h" | ||
| 7 | 6 | ||
| 8 | #ifdef __APPLE__ | 7 | #ifdef __APPLE__ |
| 9 | #include <mach/mach.h> | 8 | #include <mach/mach.h> |
diff --git a/src/common/utf8.cpp b/src/common/utf8.cpp index c83824d35..be4ebc855 100644 --- a/src/common/utf8.cpp +++ b/src/common/utf8.cpp | |||
| @@ -19,12 +19,8 @@ | |||
| 19 | #endif | 19 | #endif |
| 20 | 20 | ||
| 21 | #include <cstdlib> | 21 | #include <cstdlib> |
| 22 | #include <cstdio> | ||
| 23 | #include <cstring> | 22 | #include <cstring> |
| 24 | #include <cstdarg> | ||
| 25 | |||
| 26 | #include <algorithm> | 23 | #include <algorithm> |
| 27 | #include <string> | ||
| 28 | 24 | ||
| 29 | #include "common/common_types.h" | 25 | #include "common/common_types.h" |
| 30 | #include "common/utf8.h" | 26 | #include "common/utf8.h" |