Browse Source

Support mingw cross-compile

pull/15/merge
Jannik Vogel 9 years ago
parent
commit
45d941d62e
  1. 2
      src/citra/citra.cpp
  2. 2
      src/citra/citra.rc
  3. 2
      src/citra_qt/citra-qt.rc
  4. 2
      src/common/bit_set.h
  5. 2
      src/common/logging/text_formatter.cpp
  6. 2
      src/common/string_util.cpp
  7. 2
      src/common/thread.cpp
  8. 3
      src/common/timer.cpp
  9. 3
      src/core/gdbstub/gdbstub.cpp

2
src/citra/citra.cpp

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

2
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"

2
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"

2
src/common/bit_set.h

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

2
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"

2
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>

2
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>

3
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>
#else

3
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>

Loading…
Cancel
Save