[ruby-cvs:55016] nobu:r47867 (trunk): ruby/ruby.h: fix for older gcc

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Oct 10 23:20:21 JST 2014


nobu	2014-10-10 23:20:20 +0900 (Fri, 10 Oct 2014)

  New Revision: 47867

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47867

  Log:
    ruby/ruby.h: fix for older gcc
    
    * configure.in (__builtin_choose_expr_constant_p): in gcc 4.8 or
      earlier, __builtin_choose_expr() does not consider
      __builtin_constant_p(variable) a constant expression.
    
    * include/ruby/ruby.h (RUBY_SAFE_LEVEL_CHECK): fix for older gcc.

  Modified files:
    trunk/configure.in
    trunk/include/ruby/ruby.h


More information about the ruby-cvs mailing list