mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/date] Define dummy RUBY_TYPED_FROZEN_SHAREABLE for old Ruby
9f3e90ad10
This commit is contained in:
parent
aa856d5077
commit
aad88cc10b
1 changed files with 4 additions and 0 deletions
|
|
@ -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,},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue