summaryrefslogtreecommitdiff
path: root/coroutine/ucontext/Context.h
diff options
context:
space:
mode:
authorBenoit Daloze <[email protected]>2021-04-29 14:29:57 +0200
committerBenoit Daloze <[email protected]>2021-05-04 14:56:55 +0200
commit229cbeba8c928dc6ee5eb21951e00c43a6e5225c (patch)
tree99b6738098b5f52dc67c69f19283672dc4ed198f /coroutine/ucontext/Context.h
parent9e2483ee0b2cee0f8f8cc0b0fdfbe8abef462c00 (diff)
Fix -Wundef warnings in coroutine/*/Context.h
* See [Feature #17752] Co-authored-by: xtkoba (Tee KOBAYASHI) <[email protected]>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4428
Diffstat (limited to 'coroutine/ucontext/Context.h')
-rw-r--r--coroutine/ucontext/Context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/coroutine/ucontext/Context.h b/coroutine/ucontext/Context.h
index 797108642b..39d7ca70ca 100644
--- a/coroutine/ucontext/Context.h
+++ b/coroutine/ucontext/Context.h
@@ -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
{