diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-09-19 10:23:29 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-09-19 23:40:49 +0900 |
commit | 12889fad4100569c212c9813243db5ec5380b5fb (patch) | |
tree | 3164418a74b54f5cdb2a170ed34f17d3128b529a /ext | |
parent | a44f48cadc8a319e233bc5a8c6ab9d52aaf52bae (diff) |
[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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bigdecimal/extconf.rb | 1 | ||||
-rw-r--r-- | ext/bigdecimal/missing.h | 10 |
2 files changed, 0 insertions, 11 deletions
diff --git a/ext/bigdecimal/extconf.rb b/ext/bigdecimal/extconf.rb index e74196e18b..17e7905dd6 100644 --- a/ext/bigdecimal/extconf.rb +++ b/ext/bigdecimal/extconf.rb @@ -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") diff --git a/ext/bigdecimal/missing.h b/ext/bigdecimal/missing.h index 02d2348e4b..307147c0fd 100644 --- a/ext/bigdecimal/missing.h +++ b/ext/bigdecimal/missing.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 |