@@ -2,15 +2,15 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
-#include <algorithm> // min
-#include <string> // System: To be able to add strings with "+"
-#include <stdio.h>
-#include <math.h>
+#include <algorithm>
+#include <cmath>
+#include <cstdio>
+#include <string>
#ifdef _WIN32
#include <windows.h>
#include <array>
#else
-#include <stdarg.h>
+#include <cstdarg>
#endif
#include "common/common.h"
@@ -13,9 +13,8 @@
// --------------------------------------------------------------------------------------
#if defined(WIN32)
-
#include "common/extended_trace.h"
#include "common/string_util.h"
using namespace std;
@@ -16,11 +16,11 @@
#include <io.h>
#include <direct.h> // getcwd
+#include <cerrno>
+#include <cstdlib>
#include <sys/param.h>
#include <sys/types.h>
#include <dirent.h>
-#include <errno.h>
-#include <stdlib.h>
#if defined(__APPLE__)
@@ -11,8 +11,8 @@
#include <psapi.h>
#if !defined(_WIN32) && defined(__x86_64__) && !defined(MAP_32BIT)
@@ -2,7 +2,7 @@
-#include <stdio.h> // System
#include "common/common.h" // Local
@@ -2,9 +2,9 @@
#include <algorithm>
#include "common/common_paths.h"
@@ -13,8 +13,8 @@
#include <Windows.h>
+ #include <cerrno>
#include <iconv.h>
- #include <errno.h>
/// Make a string lowercase
@@ -10,8 +10,8 @@
// Don't include common.h here as it will break LogManager
#include "common/common_types.h"
-#include <string.h>
+#include <cstring>
// This may not be defined outside _WIN32
#ifndef _WIN32
@@ -18,10 +18,10 @@
#undef max
#include <string>