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) \