summaryrefslogtreecommitdiff
path: root/include/ruby/intern.h
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-23 17:34:58 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-23 17:34:58 +0000
commit60aa9c809b58b214cba304b28f5813c8a7399a92 (patch)
tree36cb850b95f9d84d00bd98666e00b8232c2c0146 /include/ruby/intern.h
parentc34db589139980914f0b05d27b2499ac5bec615a (diff)
* 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/ruby/intern.h')
-rw-r--r--include/ruby/intern.h2
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)) ? \