aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-12 18:12:46 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-12 18:12:46 +0000
commit6af140931bd60309a496652a5caa894e317d2111 (patch)
treeebedbdf03d2c5fbc703f8b5dcc130b429a83b3a8 /include
parentfb9be3fcfc7c8eb0b02881f1078279803d448ab9 (diff)
downloadruby-6af140931bd60309a496652a5caa894e317d2111.tar.gz
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')
-rw-r--r--include/ruby/encoding.h2
-rw-r--r--include/ruby/intern.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h
index 4e10b77f7a..371258c328 100644
--- a/include/ruby/encoding.h
+++ b/include/ruby/encoding.h
@@ -145,7 +145,7 @@ VALUE rb_str_export_to_enc(VALUE, rb_encoding *);
VALUE rb_str_conv_enc(VALUE str, rb_encoding *from, rb_encoding *to);
VALUE rb_str_conv_enc_opts(VALUE str, rb_encoding *from, rb_encoding *to, int ecflags, VALUE ecopts);
-#if defined(__GNUC__) && !defined(__PCC__)
+#ifdef HAVE_BUILTIN___BUILTIN_CONSTANT_P
#define rb_enc_str_new(str, len, enc) __extension__ ( \
{ \
(__builtin_constant_p(str) && __builtin_constant_p(len)) ? \
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)) ? \