Skip to content

Commit d07aa67

Browse files
committed
Get rid of duplicate modifier for MSVC
1 parent 8417d09 commit d07aa67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cont.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,10 @@ fiber_restore_thread(rb_thread_t *th, rb_fiber_t *fiber)
822822
VM_ASSERT(th->ec->fiber_ptr == fiber);
823823
}
824824

825-
NORETURN(static COROUTINE fiber_entry(struct coroutine_context * from, struct coroutine_context * to));
825+
#ifndef COROUTINE_DECL
826+
# define COROUTINE_DECL COROUTINE
827+
#endif
828+
NORETURN(static COROUTINE_DECL fiber_entry(struct coroutine_context * from, struct coroutine_context * to));
826829
static COROUTINE
827830
fiber_entry(struct coroutine_context * from, struct coroutine_context * to)
828831
{

0 commit comments

Comments
 (0)