1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix -Wundef warnings in coroutine/*/Context.h

* See [Feature #17752]

Co-authored-by: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
This commit is contained in:
Benoit Daloze 2021-04-29 14:29:57 +02:00
parent 9e2483ee0b
commit 229cbeba8c
Notes: git 2021-05-04 21:57:21 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -23,9 +23,12 @@
#define COROUTINE __attribute__((noreturn)) void
#ifdef HAVE_STDINT_H
#include <stdint.h>
#if INTPTR_MAX <= INT32_MAX
#define COROUTINE_LIMITED_ADDRESS_SPACE
#endif
#endif
// This stack copying implementation which uses a private stack for each coroutine, including the main one.
#define COROUTINE_PRIVATE_STACK

View file

@ -16,9 +16,12 @@
#define COROUTINE __attribute__((noreturn)) void
#ifdef HAVE_STDINT_H
#include <stdint.h>
#if INTPTR_MAX <= INT32_MAX
#define COROUTINE_LIMITED_ADDRESS_SPACE
#endif
#endif
struct coroutine_context
{