mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
4d5f46dc08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10 lines
254 B
Ruby
10 lines
254 B
Ruby
require 'mkmf'
|
|
|
|
base_fig = 0
|
|
src = "(BASE * (BASE+1)) / BASE == (BASE+1)"
|
|
while try_static_assert(src, nil, "-DBASE=10#{'0'*base_fig}UL")
|
|
base_fig += 1
|
|
end
|
|
$defs << "-DBASE=1#{'0'*base_fig}UL" << "-DBASE_FIG=#{base_fig}"
|
|
|
|
create_makefile('bigdecimal')
|