summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2016-09-21 00:13:46 -0700
committerGravatar Yuri Kunde Schlesner2016-09-21 00:16:33 -0700
commitf120e78b5692e1c710f2335d36fd0593c447a613 (patch)
tree7662a45ec3da3e99f3fcd47cd502d0cd5192e49b /src/common
parentUse negative priorities to avoid special-casing the self-include (diff)
downloadyuzu-f120e78b5692e1c710f2335d36fd0593c447a613.tar.gz
yuzu-f120e78b5692e1c710f2335d36fd0593c447a613.tar.xz
yuzu-f120e78b5692e1c710f2335d36fd0593c447a613.zip
Remove special rules for Windows.h and library includes
Diffstat (limited to 'src/common')
-rw-r--r--src/common/file_util.cpp1
-rw-r--r--src/common/memory_util.cpp1
-rw-r--r--src/common/string_util.cpp2
3 files changed, 3 insertions, 1 deletions
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 @@
10 10
11#ifdef _WIN32 11#ifdef _WIN32
12#include <windows.h> 12#include <windows.h>
13// windows.h needs to be included before other windows headers
13#include <commdlg.h> // for GetSaveFileName 14#include <commdlg.h> // for GetSaveFileName
14#include <direct.h> // getcwd 15#include <direct.h> // getcwd
15#include <io.h> 16#include <io.h>
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 @@
7 7
8#ifdef _WIN32 8#ifdef _WIN32
9#include <windows.h> 9#include <windows.h>
10// Windows.h needs to be included before psapi.h
10#include <psapi.h> 11#include <psapi.h>
11#include "common/common_funcs.h" 12#include "common/common_funcs.h"
12#include "common/string_util.h" 13#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 @@
12#include "common/logging/log.h" 12#include "common/logging/log.h"
13#include "common/string_util.h" 13#include "common/string_util.h"
14#ifdef _MSC_VER 14#ifdef _MSC_VER
15#include <Windows.h>
16#include <codecvt> 15#include <codecvt>
16#include <Windows.h>
17#include "common/common_funcs.h" 17#include "common/common_funcs.h"
18#else 18#else
19#include <iconv.h> 19#include <iconv.h>