VERY experimental Nintendo Switch 2 emulator
C++
Support mingw cross-compile
Jannik Vogel89e57a3fb053
diff --git a/src/citra/citra.cpp b/src/citra/citra.cppindex f9387e61c8..3114a71db3 100644--- a/src/citra/citra.cpp+++ b/src/citra/citra.cpp@@ -18,7 +18,7 @@#endif#ifdef _WIN32-#include <Windows.h>+#include <windows.h>#endif#include "citra/config.h"diff --git a/src/citra/citra.rc b/src/citra/citra.rcindex b0edb2e6b9..86ad2c6439 100644--- a/src/citra/citra.rc+++ b/src/citra/citra.rc@@ -5,5 +5,5 @@// Icon with lowest ID value placed first to ensure application icon// remains consistent on all systems.-GLFW_ICON ICON "..\\..\\dist\\citra.ico"+GLFW_ICON ICON "../../dist/citra.ico"diff --git a/src/citra_qt/citra-qt.rc b/src/citra_qt/citra-qt.rcindex 3c7239853b..6a61ff811c 100644--- a/src/citra_qt/citra-qt.rc+++ b/src/citra_qt/citra-qt.rc@@ -5,5 +5,5 @@// Icon with lowest ID value placed first to ensure application icon// remains consistent on all systems.-IDI_ICON1 ICON "..\\..\\dist\\citra.ico"+IDI_ICON1 ICON "../../dist/citra.ico"diff --git a/src/common/bit_set.h b/src/common/bit_set.hindex c48b3b769c..3059d0cb0d 100644--- a/src/common/bit_set.h+++ b/src/common/bit_set.h@@ -16,7 +16,7 @@ namespace Common {// Helper functions:-#ifdef _WIN32+#ifdef _MSC_VERtemplate <typename T>static inline int CountSetBits(T v) {// from https://graphics.stanford.edu/~seander/bithacks.htmldiff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cppindex d61c1696ba..9d423766ff 100644--- a/src/common/logging/text_formatter.cpp+++ b/src/common/logging/text_formatter.cpp@@ -7,7 +7,7 @@#ifdef _WIN32#define WIN32_LEAN_AND_MEAN-#include <Windows.h>+#include <windows.h>#endif#include "common/assert.h"diff --git a/src/common/string_util.cpp b/src/common/string_util.cppindex df1008180f..bad311793d 100644--- a/src/common/string_util.cpp+++ b/src/common/string_util.cpp@@ -14,7 +14,7 @@#ifdef _WIN32#include <codecvt>-#include <Windows.h>+#include <windows.h>#include "common/common_funcs.h"#else#include <iconv.h>diff --git a/src/common/thread.cpp b/src/common/thread.cppindex 9bb2f4e1d8..9e207118fd 100644--- a/src/common/thread.cpp+++ b/src/common/thread.cpp@@ -6,7 +6,7 @@#ifdef __APPLE__#include <mach/mach.h>#elif defined(_WIN32)-#include <Windows.h>+#include <windows.h>#else#if defined(__Bitrig__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__OpenBSD__)#include <pthread_np.h>diff --git a/src/common/timer.cpp b/src/common/timer.cppindex e843cbd9c3..c9803109e7 100644--- a/src/common/timer.cpp+++ b/src/common/timer.cpp@@ -4,7 +4,8 @@#include <time.h>#ifdef _WIN32-#include <Windows.h>+#include <windows.h>+// windows.h needs to be included before other windows headers#include <mmsystem.h>#include <sys/timeb.h>#elsediff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cppindex aea43e92ba..aa849ab4b2 100644--- a/src/core/gdbstub/gdbstub.cpp+++ b/src/core/gdbstub/gdbstub.cpp@@ -15,7 +15,8 @@#include <fcntl.h>#ifdef _WIN32-#include <WinSock2.h>+#include <winsock2.h>+// winsock2.h needs to be included first to prevent winsock.h being included by other includes#include <common/x64/abi.h>#include <io.h>#include <iphlpapi.h>