2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Support mingw cross-compile

This commit is contained in:
Jannik Vogel 2016-12-03 21:08:02 +01:00
parent 5234f2d287
commit 45d941d62e
9 changed files with 11 additions and 9 deletions

View file

@ -18,7 +18,7 @@
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h> #include <windows.h>
#endif #endif
#include "citra/config.h" #include "citra/config.h"

View file

@ -5,5 +5,5 @@
// Icon with lowest ID value placed first to ensure application icon // Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems. // remains consistent on all systems.
GLFW_ICON ICON "..\\..\\dist\\citra.ico" GLFW_ICON ICON "../../dist/citra.ico"

View file

@ -5,5 +5,5 @@
// Icon with lowest ID value placed first to ensure application icon // Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems. // remains consistent on all systems.
IDI_ICON1 ICON "..\\..\\dist\\citra.ico" IDI_ICON1 ICON "../../dist/citra.ico"

View file

@ -16,7 +16,7 @@ namespace Common {
// Helper functions: // Helper functions:
#ifdef _WIN32 #ifdef _MSC_VER
template <typename T> template <typename T>
static inline int CountSetBits(T v) { static inline int CountSetBits(T v) {
// from https://graphics.stanford.edu/~seander/bithacks.html // from https://graphics.stanford.edu/~seander/bithacks.html

View file

@ -7,7 +7,7 @@
#ifdef _WIN32 #ifdef _WIN32
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <Windows.h> #include <windows.h>
#endif #endif
#include "common/assert.h" #include "common/assert.h"

View file

@ -14,7 +14,7 @@
#ifdef _WIN32 #ifdef _WIN32
#include <codecvt> #include <codecvt>
#include <Windows.h> #include <windows.h>
#include "common/common_funcs.h" #include "common/common_funcs.h"
#else #else
#include <iconv.h> #include <iconv.h>

View file

@ -6,7 +6,7 @@
#ifdef __APPLE__ #ifdef __APPLE__
#include <mach/mach.h> #include <mach/mach.h>
#elif defined(_WIN32) #elif defined(_WIN32)
#include <Windows.h> #include <windows.h>
#else #else
#if defined(__Bitrig__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__OpenBSD__) #if defined(__Bitrig__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#include <pthread_np.h> #include <pthread_np.h>

View file

@ -4,7 +4,8 @@
#include <time.h> #include <time.h>
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h> #include <windows.h>
// windows.h needs to be included before other windows headers
#include <mmsystem.h> #include <mmsystem.h>
#include <sys/timeb.h> #include <sys/timeb.h>
#else #else

View file

@ -15,7 +15,8 @@
#include <fcntl.h> #include <fcntl.h>
#ifdef _WIN32 #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 <common/x64/abi.h>
#include <io.h> #include <io.h>
#include <iphlpapi.h> #include <iphlpapi.h>