summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-mirb/tools
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-03-08 11:36:00 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-03-08 11:50:52 +0900
commitcb3a6dd16863da17ae84295e64441110a38bb347 (patch)
treeca7d9d0bc5aef2983d7af790393d53c3db28cef5 /mrbgems/mruby-bin-mirb/tools
parent833f556c70b33d427e36d737289e744c496a4d90 (diff)
downloadmruby-cb3a6dd16863da17ae84295e64441110a38bb347.tar.gz
mruby-cb3a6dd16863da17ae84295e64441110a38bb347.zip
ISO C99 doesn't support unnamed unions; fix #5354
Diffstat (limited to 'mrbgems/mruby-bin-mirb/tools')
-rw-r--r--mrbgems/mruby-bin-mirb/tools/mirb/mirb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
index 8cc756174..a4780a415 100644
--- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
+++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
@@ -63,7 +63,7 @@
#define MIRB_USING_HISTORY()
#endif
-#ifndef _WIN32
+#if !defined(_WIN32) && defined(_POSIX_C_SOURCE)
#define MIRB_SIGSETJMP(env) sigsetjmp(env, 1)
#define MIRB_SIGLONGJMP(env, val) siglongjmp(env, val)
#define SIGJMP_BUF sigjmp_buf