diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-10 14:21:23 -0400 |
|---|---|---|
| committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-18 16:29:20 -0400 |
| commit | 4e9a9e584ca93d9a197f84cabc5965cabf2ede15 (patch) | |
| tree | 69db1451cd0ca272cc40d7b8336d2b57db25645b /src/common/fiber.cpp | |
| parent | 09d2ffa66300d4774436fd8b91c63ea0d7fc2607 (diff) | |
Common: Make MinGW build use Windows Fibers instead of fcontext_t
Diffstat (limited to 'src/common/fiber.cpp')
| -rw-r--r-- | src/common/fiber.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/fiber.cpp b/src/common/fiber.cpp index a46be73c10..050c93acba 100644 --- a/src/common/fiber.cpp +++ b/src/common/fiber.cpp @@ -4,7 +4,7 @@ #include "common/assert.h" #include "common/fiber.h" -#ifdef _MSC_VER +#if defined(_WIN32) || defined(WIN32) #include <windows.h> #else #include <boost/context/detail/fcontext.hpp> @@ -12,7 +12,7 @@ namespace Common { -#ifdef _MSC_VER +#if defined(_WIN32) || defined(WIN32) struct Fiber::FiberImpl { LPVOID handle = nullptr; |
