summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2022-02-19 14:25:50 +0900
committernagachika <nagachika@ruby-lang.org>2022-02-19 14:25:50 +0900
commit4868d4b439123a7ce2b24770833d2a575b81e3a5 (patch)
treeca6229ffb0208009318bf0331a2f3541861ea697 /ext
parent5c15cecfbfe61f9d46f45c949829c79cb7f162a9 (diff)
merge revision(s) fa7a712d460dc904f8a836bb22b54d457d95ba8e:
Fix -Wundef warnings for HAVE_RB_EXT_RACTOR_SAFE * See [Feature #17752] --- ext/cgi/escape/escape.c | 2 +- ext/monitor/monitor.c | 2 +- ext/racc/cparse/cparse.c | 2 +- ext/zlib/zlib.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
Diffstat (limited to 'ext')
-rw-r--r--ext/cgi/escape/escape.c2
-rw-r--r--ext/monitor/monitor.c2
-rw-r--r--ext/racc/cparse/cparse.c2
-rw-r--r--ext/zlib/zlib.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/ext/cgi/escape/escape.c b/ext/cgi/escape/escape.c
index d001eacd90..809f95ef4c 100644
--- a/ext/cgi/escape/escape.c
+++ b/ext/cgi/escape/escape.c
@@ -389,7 +389,7 @@ cgiesc_unescape(int argc, VALUE *argv, VALUE self)
void
Init_escape(void)
{
-#if HAVE_RB_EXT_RACTOR_SAFE
+#ifdef HAVE_RB_EXT_RACTOR_SAFE
rb_ext_ractor_safe(true);
#endif
diff --git a/ext/monitor/monitor.c b/ext/monitor/monitor.c
index ec00fa6a7f..a3efe96bb3 100644
--- a/ext/monitor/monitor.c
+++ b/ext/monitor/monitor.c
@@ -203,7 +203,7 @@ monitor_synchronize(VALUE monitor)
void
Init_monitor(void)
{
-#if HAVE_RB_EXT_RACTOR_SAFE
+#ifdef HAVE_RB_EXT_RACTOR_SAFE
rb_ext_ractor_safe(true);
#endif
diff --git a/ext/racc/cparse/cparse.c b/ext/racc/cparse/cparse.c
index 8614c10e09..f71ed2bba9 100644
--- a/ext/racc/cparse/cparse.c
+++ b/ext/racc/cparse/cparse.c
@@ -819,7 +819,7 @@ reduce0(RB_BLOCK_CALL_FUNC_ARGLIST(_, data))
void
Init_cparse(void)
{
-#if HAVE_RB_EXT_RACTOR_SAFE
+#ifdef HAVE_RB_EXT_RACTOR_SAFE
rb_ext_ractor_safe(true);
#endif
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index d7caddf39a..7b74a40860 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -4554,7 +4554,7 @@ zlib_gunzip_run(VALUE arg)
void
Init_zlib(void)
{
-#if HAVE_RB_EXT_RACTOR_SAFE
+#ifdef HAVE_RB_EXT_RACTOR_SAFE
rb_ext_ractor_safe(true);
#endif