diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-12 18:12:46 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-12 18:12:46 +0000 |
commit | ac11f944e143eaaaf596e3efb94a522502788af7 (patch) | |
tree | ebedbdf03d2c5fbc703f8b5dcc130b429a83b3a8 /include/ruby/intern.h | |
parent | 91e3c8b3702dfc1cff4f6c6fae6ab9cf55625644 (diff) |
Use HAVE_BUILTIN___BUILTIN_CONSTANT_P
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/intern.h')
-rw-r--r-- | include/ruby/intern.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index a33f7cc407..67e51a9610 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -790,7 +790,7 @@ VALUE rb_str_scrub(VALUE, VALUE); /* symbol.c */ VALUE rb_sym_all_symbols(void); -#if defined(__GNUC__) && !defined(__PCC__) +#ifdef HAVE_BUILTIN___BUILTIN_CONSTANT_P #define rb_str_new(str, len) __extension__ ( \ { \ (__builtin_constant_p(str) && __builtin_constant_p(len)) ? \ |