summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/fiber.cpp4
-rw-r--r--src/common/fiber.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/fiber.cpp b/src/common/fiber.cpp
index a46be73c1..050c93acb 100644
--- a/src/common/fiber.cpp
+++ b/src/common/fiber.cpp
@@ -4,7 +4,7 @@
4 4
5#include "common/assert.h" 5#include "common/assert.h"
6#include "common/fiber.h" 6#include "common/fiber.h"
7#ifdef _MSC_VER 7#if defined(_WIN32) || defined(WIN32)
8#include <windows.h> 8#include <windows.h>
9#else 9#else
10#include <boost/context/detail/fcontext.hpp> 10#include <boost/context/detail/fcontext.hpp>
@@ -12,7 +12,7 @@
12 12
13namespace Common { 13namespace Common {
14 14
15#ifdef _MSC_VER 15#if defined(_WIN32) || defined(WIN32)
16 16
17struct Fiber::FiberImpl { 17struct Fiber::FiberImpl {
18 LPVOID handle = nullptr; 18 LPVOID handle = nullptr;
diff --git a/src/common/fiber.h b/src/common/fiber.h
index b530bf4d2..598fe7daa 100644
--- a/src/common/fiber.h
+++ b/src/common/fiber.h
@@ -10,7 +10,7 @@
10#include "common/common_types.h" 10#include "common/common_types.h"
11#include "common/spin_lock.h" 11#include "common/spin_lock.h"
12 12
13#ifndef _MSC_VER 13#if !defined(_WIN32) && !defined(WIN32)
14namespace boost::context::detail { 14namespace boost::context::detail {
15struct transfer_t; 15struct transfer_t;
16} 16}
@@ -57,7 +57,7 @@ public:
57private: 57private:
58 Fiber(); 58 Fiber();
59 59
60#ifdef _MSC_VER 60#if defined(_WIN32) || defined(WIN32)
61 void start(); 61 void start();
62 static void FiberStartFunc(void* fiber_parameter); 62 static void FiberStartFunc(void* fiber_parameter);
63#else 63#else