Просмотр исходного кода

Common: Fix string_util includes.

Emmanuel Gil Peyrot 11 лет назад
Родитель
Сommit
13e6876463
2 измененных файлов с 9 добавлено и 3 удалено
  1. 7 2
      src/common/string_util.cpp
  2. 2 1
      src/common/string_util.h

+ 7 - 2
src/common/string_util.cpp

@@ -2,9 +2,13 @@
 // Licensed under GPLv2 or any later version
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 // Refer to the license.txt file included.
 
 
-#include <boost/range/algorithm.hpp>
+#include <cctype>
+#include <cerrno>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
+#include <boost/range/algorithm/transform.hpp>
 
 
-#include "common/common_funcs.h"
 #include "common/common_paths.h"
 #include "common/common_paths.h"
 #include "common/logging/log.h"
 #include "common/logging/log.h"
 #include "common/string_util.h"
 #include "common/string_util.h"
@@ -12,6 +16,7 @@
 #ifdef _MSC_VER
 #ifdef _MSC_VER
     #include <Windows.h>
     #include <Windows.h>
     #include <codecvt>
     #include <codecvt>
+    #include "common/common_funcs.h"
 #else
 #else
     #include <iconv.h>
     #include <iconv.h>
 #endif
 #endif

+ 2 - 1
src/common/string_util.h

@@ -5,9 +5,10 @@
 #pragma once
 #pragma once
 
 
 #include <cstdarg>
 #include <cstdarg>
+#include <cstddef>
 #include <iomanip>
 #include <iomanip>
-#include <string>
 #include <sstream>
 #include <sstream>
+#include <string>
 #include <vector>
 #include <vector>
 
 
 #include "common/common_types.h"
 #include "common/common_types.h"