diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/console_listener.cpp | 10 | ||||
| -rw-r--r-- | src/common/extended_trace.cpp | 3 | ||||
| -rw-r--r-- | src/common/file_util.cpp | 4 | ||||
| -rw-r--r-- | src/common/memory_util.cpp | 4 | ||||
| -rw-r--r-- | src/common/msg_handler.cpp | 2 | ||||
| -rw-r--r-- | src/common/string_util.cpp | 6 | ||||
| -rw-r--r-- | src/common/thread.h | 4 | ||||
| -rw-r--r-- | src/common/utf8.cpp | 8 |
8 files changed, 20 insertions, 21 deletions
diff --git a/src/common/console_listener.cpp b/src/common/console_listener.cpp index db48abbf6..27697ef1f 100644 --- a/src/common/console_listener.cpp +++ b/src/common/console_listener.cpp | |||
| @@ -2,15 +2,15 @@ | |||
| 2 | // Licensed under GPLv2 | 2 | // Licensed under GPLv2 |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <algorithm> // min | 5 | #include <algorithm> |
| 6 | #include <string> // System: To be able to add strings with "+" | 6 | #include <cmath> |
| 7 | #include <stdio.h> | 7 | #include <cstdio> |
| 8 | #include <math.h> | 8 | #include <string> |
| 9 | #ifdef _WIN32 | 9 | #ifdef _WIN32 |
| 10 | #include <windows.h> | 10 | #include <windows.h> |
| 11 | #include <array> | 11 | #include <array> |
| 12 | #else | 12 | #else |
| 13 | #include <stdarg.h> | 13 | #include <cstdarg> |
| 14 | #endif | 14 | #endif |
| 15 | 15 | ||
| 16 | #include "common/common.h" | 16 | #include "common/common.h" |
diff --git a/src/common/extended_trace.cpp b/src/common/extended_trace.cpp index 0a1c6a67a..66dae4935 100644 --- a/src/common/extended_trace.cpp +++ b/src/common/extended_trace.cpp | |||
| @@ -13,9 +13,8 @@ | |||
| 13 | // -------------------------------------------------------------------------------------- | 13 | // -------------------------------------------------------------------------------------- |
| 14 | 14 | ||
| 15 | #if defined(WIN32) | 15 | #if defined(WIN32) |
| 16 | 16 | #include <cstdio> | |
| 17 | #include <windows.h> | 17 | #include <windows.h> |
| 18 | #include <stdio.h> | ||
| 19 | #include "common/extended_trace.h" | 18 | #include "common/extended_trace.h" |
| 20 | #include "common/string_util.h" | 19 | #include "common/string_util.h" |
| 21 | using namespace std; | 20 | using namespace std; |
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 47ad964db..b6ff2e40b 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp | |||
| @@ -16,11 +16,11 @@ | |||
| 16 | #include <io.h> | 16 | #include <io.h> |
| 17 | #include <direct.h> // getcwd | 17 | #include <direct.h> // getcwd |
| 18 | #else | 18 | #else |
| 19 | #include <cerrno> | ||
| 20 | #include <cstdlib> | ||
| 19 | #include <sys/param.h> | 21 | #include <sys/param.h> |
| 20 | #include <sys/types.h> | 22 | #include <sys/types.h> |
| 21 | #include <dirent.h> | 23 | #include <dirent.h> |
| 22 | #include <errno.h> | ||
| 23 | #include <stdlib.h> | ||
| 24 | #endif | 24 | #endif |
| 25 | 25 | ||
| 26 | #if defined(__APPLE__) | 26 | #if defined(__APPLE__) |
diff --git a/src/common/memory_util.cpp b/src/common/memory_util.cpp index 71ef159c3..e1cd6e553 100644 --- a/src/common/memory_util.cpp +++ b/src/common/memory_util.cpp | |||
| @@ -11,8 +11,8 @@ | |||
| 11 | #include <windows.h> | 11 | #include <windows.h> |
| 12 | #include <psapi.h> | 12 | #include <psapi.h> |
| 13 | #else | 13 | #else |
| 14 | #include <errno.h> | 14 | #include <cerrno> |
| 15 | #include <stdio.h> | 15 | #include <cstdio> |
| 16 | #endif | 16 | #endif |
| 17 | 17 | ||
| 18 | #if !defined(_WIN32) && defined(__x86_64__) && !defined(MAP_32BIT) | 18 | #if !defined(_WIN32) && defined(__x86_64__) && !defined(MAP_32BIT) |
diff --git a/src/common/msg_handler.cpp b/src/common/msg_handler.cpp index c1386cdaa..3e02ec4d7 100644 --- a/src/common/msg_handler.cpp +++ b/src/common/msg_handler.cpp | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | // Licensed under GPLv2 | 2 | // Licensed under GPLv2 |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <stdio.h> // System | 5 | #include <cstdio> |
| 6 | 6 | ||
| 7 | #include "common/common.h" // Local | 7 | #include "common/common.h" // Local |
| 8 | #include "common/string_util.h" | 8 | #include "common/string_util.h" |
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index e5a9ba322..c1f22bda3 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp | |||
| @@ -2,9 +2,9 @@ | |||
| 2 | // Licensed under GPLv2 | 2 | // Licensed under GPLv2 |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <stdlib.h> | ||
| 6 | #include <stdio.h> | ||
| 7 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | #include <cstdlib> | ||
| 7 | #include <cstdio> | ||
| 8 | 8 | ||
| 9 | #include "common/common.h" | 9 | #include "common/common.h" |
| 10 | #include "common/common_paths.h" | 10 | #include "common/common_paths.h" |
| @@ -13,8 +13,8 @@ | |||
| 13 | #ifdef _WIN32 | 13 | #ifdef _WIN32 |
| 14 | #include <Windows.h> | 14 | #include <Windows.h> |
| 15 | #else | 15 | #else |
| 16 | #include <cerrno> | ||
| 16 | #include <iconv.h> | 17 | #include <iconv.h> |
| 17 | #include <errno.h> | ||
| 18 | #endif | 18 | #endif |
| 19 | 19 | ||
| 20 | /// Make a string lowercase | 20 | /// Make a string lowercase |
diff --git a/src/common/thread.h b/src/common/thread.h index ff2c1d8be..dbb9da53b 100644 --- a/src/common/thread.h +++ b/src/common/thread.h | |||
| @@ -10,8 +10,8 @@ | |||
| 10 | 10 | ||
| 11 | // Don't include common.h here as it will break LogManager | 11 | // Don't include common.h here as it will break LogManager |
| 12 | #include "common/common_types.h" | 12 | #include "common/common_types.h" |
| 13 | #include <stdio.h> | 13 | #include <cstdio> |
| 14 | #include <string.h> | 14 | #include <cstring> |
| 15 | 15 | ||
| 16 | // This may not be defined outside _WIN32 | 16 | // This may not be defined outside _WIN32 |
| 17 | #ifndef _WIN32 | 17 | #ifndef _WIN32 |
diff --git a/src/common/utf8.cpp b/src/common/utf8.cpp index fe5270183..c83824d35 100644 --- a/src/common/utf8.cpp +++ b/src/common/utf8.cpp | |||
| @@ -18,10 +18,10 @@ | |||
| 18 | #undef max | 18 | #undef max |
| 19 | #endif | 19 | #endif |
| 20 | 20 | ||
| 21 | #include <stdlib.h> | 21 | #include <cstdlib> |
| 22 | #include <stdio.h> | 22 | #include <cstdio> |
| 23 | #include <string.h> | 23 | #include <cstring> |
| 24 | #include <stdarg.h> | 24 | #include <cstdarg> |
| 25 | 25 | ||
| 26 | #include <algorithm> | 26 | #include <algorithm> |
| 27 | #include <string> | 27 | #include <string> |