diff options
-rw-r--r-- | include/ruby/ruby.h | 2 | ||||
-rw-r--r-- | random.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 32a6d23b2e..351766a111 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1169,7 +1169,9 @@ rb_obj_freeze_inline(VALUE x) # define RUBY_UNTYPED_DATA_FUNC(func) DEPRECATED(func) #endif +#if defined(HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P) RUBY_UNTYPED_DATA_FUNC(static inline VALUE rb_data_object_alloc_warning(VALUE,void*,RUBY_DATA_FUNC,RUBY_DATA_FUNC)); +#endif RUBY_UNTYPED_DATA_FUNC(static inline void *rb_data_object_get_warning(VALUE)); static inline VALUE @@ -491,8 +491,6 @@ fill_random_bytes(void *seed, size_t size) } else { if (!old_prov) { -# undef RUBY_UNTYPED_DATA_WARNING -# define RUBY_UNTYPED_DATA_WARNING 0 rb_gc_register_mark_object(Data_Wrap_Struct(0, 0, release_crypt, &prov)); } else { |