ruby-changes:52640
From: shyouhei <ko1@a...>
Date: Wed, 26 Sep 2018 15:16:36 +0900 (JST)
Subject: [ruby-changes:52640] shyouhei:r64852 (trunk): use configure-defined macro instead of __GNUC__
shyouhei 2018-09-26 15:16:32 +0900 (Wed, 26 Sep 2018) New Revision: 64852 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64852 Log: use configure-defined macro instead of __GNUC__ Modified files: trunk/include/ruby/ruby.h Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 64851) +++ include/ruby/ruby.h (revision 64852) @@ -1770,7 +1770,7 @@ VALUE rb_check_symbol(volatile VALUE *na https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1770 do RUBY_CONST_ID_CACHE((var) =, (str)) while (0) #define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str) #define CONST_ID(var, str) RUBY_CONST_ID(var, str) -#ifdef __GNUC__ +#ifdef HAVE_BUILTIN___BUILTIN_CONSTANT_P /* __builtin_constant_p and statement expression is available * since gcc-2.7.2.3 at least. */ #define rb_intern(str) \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/