diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-23 17:34:58 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-23 17:34:58 +0000 |
commit | 60aa9c809b58b214cba304b28f5813c8a7399a92 (patch) | |
tree | 36cb850b95f9d84d00bd98666e00b8232c2c0146 /include | |
parent | c34db589139980914f0b05d27b2499ac5bec615a (diff) | |
download | ruby-60aa9c809b58b214cba304b28f5813c8a7399a92.tar.gz |
* include/ruby/intern.h: pcc can't use __builtin_constant_p.
* vm_exec.c: change condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-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 37210e1a5a..7e552d41cf 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -715,7 +715,7 @@ VALUE rb_str_length(VALUE); long rb_str_offset(VALUE, long); size_t rb_str_capacity(VALUE); VALUE rb_str_ellipsize(VALUE, long); -#if defined __GNUC__ +#if defined(__GNUC__) && !defined(__PCC__) #define rb_str_new_cstr(str) __extension__ ( \ { \ (__builtin_constant_p(str)) ? \ |