Sha256: 2001ee3a463ead99831778ccf7021d5d71b361e280e2fef20ff693666dd86e74

Contents?: true

Size: 726 Bytes

Versions: 4

Compression:

Stored size: 726 Bytes

Contents

# 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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
ruby-compiler-0.1.1 vendor/ruby/ext/bigdecimal/extconf.rb
bigdecimal-1.3.0 ext/bigdecimal/extconf.rb
bigdecimal-1.3.0.pre.2 ext/bigdecimal/extconf.rb
bigdecimal-1.3.0.pre ext/bigdecimal/extconf.rb