diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-09-21 00:13:46 -0700 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-09-21 00:16:33 -0700 |
commit | f120e78b5692e1c710f2335d36fd0593c447a613 (patch) | |
tree | 7662a45ec3da3e99f3fcd47cd502d0cd5192e49b /src/common | |
parent | 84fbbe26297652d994d203bde543ec252c2d801a (diff) |
Remove special rules for Windows.h and library includes
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/file_util.cpp | 1 | ||||
-rw-r--r-- | src/common/memory_util.cpp | 1 | ||||
-rw-r--r-- | src/common/string_util.cpp | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 7a21962cc8..14cbcac6bb 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -10,6 +10,7 @@ #ifdef _WIN32 #include <windows.h> +// windows.h needs to be included before other windows headers #include <commdlg.h> // for GetSaveFileName #include <direct.h> // getcwd #include <io.h> diff --git a/src/common/memory_util.cpp b/src/common/memory_util.cpp index e19d7202a5..c19729b21f 100644 --- a/src/common/memory_util.cpp +++ b/src/common/memory_util.cpp @@ -7,6 +7,7 @@ #ifdef _WIN32 #include <windows.h> +// Windows.h needs to be included before psapi.h #include <psapi.h> #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 ca97e8ab49..596ae01bf1 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 <Windows.h> #include <codecvt> +#include <Windows.h> #include "common/common_funcs.h" #else #include <iconv.h> |