2003-03-28 05:00:21 +00:00
|
|
|
require 'mkmf'
|
2008-02-09 08:51:26 +00:00
|
|
|
|
|
|
|
base_fig = 0
|
2008-02-09 14:22:54 +00:00
|
|
|
src = "(BASE * (BASE+1)) / BASE == (BASE+1)"
|
2008-02-09 08:51:26 +00:00
|
|
|
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}"
|
|
|
|
|
2003-03-28 05:00:21 +00:00
|
|
|
create_makefile('bigdecimal')
|