repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git]
/
ext
/
bigdecimal
/
extconf.rb
blob
0c8b98e4a34b1747673a86c17d1f076b26525324
1
require 'mkmf'
2
3
base_fig = 0
4
src = "(BASE * (BASE+1)) / BASE == (BASE+1)"
5
while try_static_assert(src, nil, "-DBASE=10#{'0'*base_fig}UL")
6
base_fig += 1
7
end
8
$defs << "-DBASE=1#{'0'*base_fig}UL" << "-DBASE_FIG=#{base_fig}"
9
10
create_makefile('bigdecimal')