mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/bigdecimal] Remove symbol defs in missing.h for old Rubies
Commit 2885514 added these to support Ruby 2.1. The rb_sym2str function is defined since Ruby 2.2. https://github.com/ruby/bigdecimal/commit/be366c9cf2
This commit is contained in:
parent
a44f48cadc
commit
12889fad41
2 changed files with 0 additions and 11 deletions
|
@ -71,7 +71,6 @@ have_func("rb_rational_num", "ruby.h")
|
|||
have_func("rb_rational_den", "ruby.h")
|
||||
have_func("rb_complex_real", "ruby.h")
|
||||
have_func("rb_complex_imag", "ruby.h")
|
||||
have_func("rb_sym2str", "ruby.h")
|
||||
have_func("rb_opts_exception_p", "ruby.h")
|
||||
have_func("rb_category_warn", "ruby.h")
|
||||
have_const("RB_WARN_CATEGORY_DEPRECATED", "ruby.h")
|
||||
|
|
|
@ -172,16 +172,6 @@ rb_complex_imag(VALUE cmp)
|
|||
}
|
||||
#endif
|
||||
|
||||
/* symbol */
|
||||
|
||||
#ifndef HAVE_RB_SYM2STR
|
||||
static inline VALUE
|
||||
rb_sym2str(VALUE sym)
|
||||
{
|
||||
return rb_id2str(SYM2ID(sym));
|
||||
}
|
||||
#endif
|
||||
|
||||
/* st */
|
||||
|
||||
#ifndef ST2FIX
|
||||
|
|
Loading…
Reference in a new issue