mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix -Wundef warnings for HAVE_RB_EXT_RACTOR_SAFE
* See [Feature #17752]
This commit is contained in:
parent
59a92a84c8
commit
fa7a712d46
Notes:
git
2021-05-04 21:57:20 +09:00
4 changed files with 4 additions and 4 deletions
|
@ -388,7 +388,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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -4564,7 +4564,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
|
||||
|
||||
|
|
Loading…
Reference in a new issue