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:
parent
9e2483ee0b
commit
229cbeba8c
Notes:
git
2021-05-04 21:57:21 +09:00
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue