summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 10:51:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 10:51:27 +0000
commit5fe1ad969efdc968c9d53240f0845f007a396b8d (patch)
tree08cb991d954f48c81c013f9e5d48f2fe88549fa8
parentbe3af57b6fe160b7842d6ecc67b3408501f5acfb (diff)
Fix condition
FIBER_USE_NATIVE is always defined as 0 or 1, use `#if` instead of `#ifdef`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--cont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cont.c b/cont.c
index 145da93078..56128a843a 100644
--- a/cont.c
+++ b/cont.c
@@ -908,7 +908,7 @@ fiber_machine_stack_alloc(size_t size)
}
#endif
-#ifdef FIBER_USE_NATIVE
+#if FIBER_USE_NATIVE
static void
fiber_initialize_machine_stack_context(rb_fiber_t *fib, size_t size)
{
@@ -999,7 +999,7 @@ fiber_setcontext(rb_fiber_t *newfib, rb_fiber_t *oldfib)
swapcontext(&oldfib->context, &newfib->context);
#endif
}
-#endif /* FIBER_ALLOCATE_STACK */
+#endif /* FIBER_USE_NATIVE */
NOINLINE(NORETURN(static void cont_restore_1(rb_context_t *)));