Support mingw cross-compilation
@ -18,7 +18,7 @@
#endif
#ifdef _WIN32
#include <Windows.h>
#include <windows.h>
#include "citra/config.h"
@ -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"
CITRA_ICON ICON "../../dist/citra.ico"
IDI_ICON1 ICON "..\\..\\dist\\citra.ico"
@ -16,7 +16,7 @@ namespace Common {
// Helper functions:
#ifdef _MSC_VER
template <typename T>
static inline int CountSetBits(T v) {
// from https://graphics.stanford.edu/~seander/bithacks.html
@ -7,7 +7,7 @@
#define WIN32_LEAN_AND_MEAN
#include "common/assert.h"
@ -14,7 +14,7 @@
#include <codecvt>
#include "common/common_funcs.h"
#else
#include <iconv.h>
@ -6,7 +6,7 @@
#ifdef __APPLE__
#include <mach/mach.h>
#elif defined(_WIN32)
#if defined(__Bitrig__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#include <pthread_np.h>
@ -4,7 +4,8 @@
#include <time.h>
// windows.h needs to be included before other windows headers
#include <mmsystem.h>
#include <sys/timeb.h>
@ -15,8 +15,8 @@
#include <fcntl.h>
#include <WinSock2.h>
#include <common/x64/abi.h>
#include <winsock2.h>
// winsock2.h needs to be included first to prevent winsock.h being included by other includes
#include <io.h>
#include <iphlpapi.h>
#include <ws2tcpip.h>