summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2021-03-04 09:59:59 +0100
committerJosJuice <josjuice@gmail.com>2021-03-04 10:26:31 +0100
commit2cb3f663bcbfd2f446df10c1555b5d5ddd0e96c1 (patch)
treecc57ce1540f2b8faa0b82eb314627aaa48a3bcb1 /Source/Core
parent858f00b6418538dcbbc552edecb4bbe152a7fd66 (diff)
CMake: Include WIL headers
MSBuild does this, so CMake should too. Fixes a Windows build error.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/GameList/GameList.cpp26
1 files changed, 12 insertions, 14 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameList.cpp b/Source/Core/DolphinQt/GameList/GameList.cpp
index e1a19f1f0b..ae8b3d5449 100644
--- a/Source/Core/DolphinQt/GameList/GameList.cpp
+++ b/Source/Core/DolphinQt/GameList/GameList.cpp
@@ -2,6 +2,18 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
+#ifdef _WIN32
+#include <QCoreApplication>
+#include <shlobj.h>
+#include <wil/com.h>
+
+// This file uses some identifiers which are defined as macros in Windows headers.
+// Include and undefine the macros first thing we do to solve build errors.
+#ifdef DeleteFile
+#undef DeleteFile
+#endif
+#endif
+
#include "DolphinQt/GameList/GameList.h"
#include <algorithm>
@@ -53,20 +65,6 @@
#include "UICommon/GameFile.h"
-#ifdef _WIN32
-#include <QCoreApplication>
-#include <shlobj.h>
-#include <wil/com.h>
-
-// This file uses some identifiers which are defined as macros in Windows headers.
-// Undefine them for the intellisense parser to solve some red squiggles.
-#ifdef __INTELLISENSE__
-#ifdef DeleteFile
-#undef DeleteFile
-#endif
-#endif
-#endif
-
GameList::GameList(QWidget* parent) : QStackedWidget(parent), m_model(this)
{
m_list_proxy = new ListProxyModel(this);