summaryrefslogtreecommitdiff
path: root/ext/racc/cparse/cparse.c
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2021-04-29 15:03:46 +0200
committerBenoit Daloze <eregontp@gmail.com>2021-05-04 14:56:55 +0200
commitfa7a712d460dc904f8a836bb22b54d457d95ba8e (patch)
tree9712a2559d274b8d2be60b0733c2004af4d55111 /ext/racc/cparse/cparse.c
parent59a92a84c8145c3dffd9f2a0e570dbc61211c86c (diff)
downloadruby-fa7a712d460dc904f8a836bb22b54d457d95ba8e.tar.gz
Fix -Wundef warnings for HAVE_RB_EXT_RACTOR_SAFE
* See [Feature #17752]
Diffstat (limited to 'ext/racc/cparse/cparse.c')
-rw-r--r--ext/racc/cparse/cparse.c2
1 files changed, 1 insertions, 1 deletions
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