diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-10 07:49:15 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-10 07:49:15 +0000 |
commit | 8e1293730e372b0cb5ebad818129f7bbe295477d (patch) | |
tree | 24475b84998b3b32f36c109f7a671fe6998bd9ef /ext/bigdecimal/extconf.rb | |
parent | 2dd993072efcf24cf95ed65d5a021cb73ea8d443 (diff) |
bigdecimal: import version 1.3.0.pre
Import bigdecimal version 1.3.0.pre. The full commit log of this
changes can be found at:
https://github.com/ruby/bigdecimal/compare/5c43a9e...v1.3.0.pre
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal/extconf.rb')
-rw-r--r-- | ext/bigdecimal/extconf.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/bigdecimal/extconf.rb b/ext/bigdecimal/extconf.rb index 3799e685bc..b4f3a7a4f8 100644 --- a/ext/bigdecimal/extconf.rb +++ b/ext/bigdecimal/extconf.rb @@ -1,11 +1,30 @@ # frozen_string_literal: false require 'mkmf' +alias __have_macro__ have_macro + have_func("labs", "stdlib.h") have_func("llabs", "stdlib.h") +have_func("finite", "math.h") +have_func("isfinite", "math.h") have_type("struct RRational", "ruby.h") have_func("rb_rational_num", "ruby.h") have_func("rb_rational_den", "ruby.h") +have_func("rb_array_const_ptr", "ruby.h") +have_func("rb_sym2str", "ruby.h") + +have_macro("FIX_CONST_VALUE_PTR", "ruby.h") +have_macro("RARRAY_CONST_PTR", "ruby.h") +have_macro("RARRAY_AREF", "ruby.h") create_makefile('bigdecimal') + +# Add additional dependencies +open('Makefile', 'a') do |io| + if RUBY_VERSION >= '2.4' + io.puts <<-MAKEFILE +bigdecimal.o: $(hdrdir)/ruby/backward.h + MAKEFILE + end +end |