From b8e7f6af57a20e0adc2504121ebf0ade00609cfe Mon Sep 17 00:00:00 2001 From: Takeshi Watanabe Date: Wed, 8 Jan 2025 13:30:01 +0900 Subject: [PATCH] Use mrb_frozen_p macro in stringio.c For https://github.com/mruby/mruby/commit/c11d18e426051aba345ab26d39811230559334ac --- src/stringio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stringio.c b/src/stringio.c index 5560e00..7b08ed7 100644 --- a/src/stringio.c +++ b/src/stringio.c @@ -23,8 +23,12 @@ original is https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c // For compatibility before https://github.com/mruby/mruby/pull/3340 #ifndef MRB_FROZEN_P +#ifdef mrb_frozen_p +#define MRB_FROZEN_P(o) mrb_frozen_p(o) +#else #define MRB_FROZEN_P(o) RSTR_FROZEN_P(o) #endif +#endif struct StringIO { mrb_int pos;