aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-26 06:16:32 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-26 06:16:32 +0000
commitfa48ec0ebdc3f1f5ca89fd99a8c42e03120f0d71 (patch)
tree18ec88b02cc2ecb626ceee4a1118c5dfd23de15f /include
parentcbf169fa5e958fa59f6a632c3c1fcc83ceec2002 (diff)
downloadruby-fa48ec0ebdc3f1f5ca89fd99a8c42e03120f0d71.tar.gz
use configure-defined macro instead of __GNUC__
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index d6072bca66..b278d522bb 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -1770,7 +1770,7 @@ VALUE rb_check_symbol(volatile VALUE *namep);
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) \