diff options
author | Kenta Murata <[email protected]> | 2020-12-23 16:51:16 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-12-23 18:32:24 +0900 |
commit | aad88cc10ba268625aaa93ddcc6ff5036052c5cd (patch) | |
tree | 45c4c6d43d092814c30182d2515a5cf571a2eddf /ext/date/date_core.c | |
parent | aa856d50772aaaceb7b245b8b59f1ab1851a7fab (diff) |
[ruby/date] Define dummy RUBY_TYPED_FROZEN_SHAREABLE for old Ruby
https://github.com/ruby/date/commit/9f3e90ad10
Diffstat (limited to 'ext/date/date_core.c')
-rw-r--r-- | ext/date/date_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 38deba6034..7e9bf16a07 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -2973,6 +2973,10 @@ d_lite_memsize(const void *ptr) return complex_dat_p(dat) ? sizeof(struct ComplexDateData) : sizeof(struct SimpleDateData); } +#ifndef HAVE_RB_EXT_RACTOR_SAFE +# define RUBY_TYPED_FROZEN_SHAREABLE 0 +#endif + static const rb_data_type_t d_lite_type = { "Date", {d_lite_gc_mark, RUBY_TYPED_DEFAULT_FREE, d_lite_memsize,}, |