summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-04 06:54:42 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-04 06:54:42 +0000
commit632aa7a0fc1416481c3d8934689f2d61be1c843d (patch)
treeb584770662189e3f38d99f7529b2ac69c3a190d5 /include
parentab4e003969321c167ce326420ac153afb1ebf27e (diff)
* include/ruby/ruby.h (NUM2CHR): prefix __extension__ for
braced-groups within expressions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 55836a8fd4..84bce04c07 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -962,7 +962,7 @@ ULONG2NUM(unsigned long v)
#define NUM2CHR_internal(x) (((TYPE(x) == T_STRING)&&(RSTRING_LEN(x)>=1))?\
RSTRING_PTR(x)[0]:(char)(NUM2INT(x)&0xff))
#ifdef __GNUC__
-# define NUM2CHR(x) ({VALUE num2chr_x = (x); NUM2CHR_internal(num2chr_x);})
+# define NUM2CHR(x) __extension__ ({VALUE num2chr_x = (x); NUM2CHR_internal(num2chr_x);})
#else
static inline char
NUM2CHR(VALUE x)