yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

Common: Make MinGW build use Windows Fibers instead of fcontext_t

This commit is contained in:
Fernando Sahmkow 2020-02-10 14:21:23 -04:00
parent 1bd706344e
commit 3398f701ee
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
#include "common/assert.h" #include "common/assert.h"
#include "common/fiber.h" #include "common/fiber.h"
#ifdef _MSC_VER #if defined(_WIN32) || defined(WIN32)
#include <windows.h> #include <windows.h>
#else #else
#include <boost/context/detail/fcontext.hpp> #include <boost/context/detail/fcontext.hpp>
@ -12,7 +12,7 @@
namespace Common { namespace Common {
#ifdef _MSC_VER #if defined(_WIN32) || defined(WIN32)
struct Fiber::FiberImpl { struct Fiber::FiberImpl {
LPVOID handle = nullptr; LPVOID handle = nullptr;

View File

@ -10,7 +10,7 @@
#include "common/common_types.h" #include "common/common_types.h"
#include "common/spin_lock.h" #include "common/spin_lock.h"
#ifndef _MSC_VER #if !defined(_WIN32) && !defined(WIN32)
namespace boost::context::detail { namespace boost::context::detail {
struct transfer_t; struct transfer_t;
} }
@ -57,7 +57,7 @@ public:
private: private:
Fiber(); Fiber();
#ifdef _MSC_VER #if defined(_WIN32) || defined(WIN32)
void start(); void start();
static void FiberStartFunc(void* fiber_parameter); static void FiberStartFunc(void* fiber_parameter);
#else #else