From f120e78b5692e1c710f2335d36fd0593c447a613 Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Wed, 21 Sep 2016 00:13:46 -0700 Subject: Remove special rules for Windows.h and library includes --- src/common/file_util.cpp | 1 + src/common/memory_util.cpp | 1 + src/common/string_util.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 7a21962cc..14cbcac6b 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -10,6 +10,7 @@ #ifdef _WIN32 #include +// windows.h needs to be included before other windows headers #include // for GetSaveFileName #include // getcwd #include diff --git a/src/common/memory_util.cpp b/src/common/memory_util.cpp index e19d7202a..c19729b21 100644 --- a/src/common/memory_util.cpp +++ b/src/common/memory_util.cpp @@ -7,6 +7,7 @@ #ifdef _WIN32 #include +// Windows.h needs to be included before psapi.h #include #include "common/common_funcs.h" #include "common/string_util.h" diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index ca97e8ab4..596ae01bf 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp @@ -12,8 +12,8 @@ #include "common/logging/log.h" #include "common/string_util.h" #ifdef _MSC_VER -#include #include +#include #include "common/common_funcs.h" #else #include -- cgit v1.2.3