* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git] / ext / bigdecimal / extconf.rb
blob0c8b98e4a34b1747673a86c17d1f076b26525324
1 require 'mkmf'
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}"
10 create_makefile('bigdecimal')