diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-04 06:54:42 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-04 06:54:42 +0000 |
commit | 632aa7a0fc1416481c3d8934689f2d61be1c843d (patch) | |
tree | b584770662189e3f38d99f7529b2ac69c3a190d5 /include | |
parent | ab4e003969321c167ce326420ac153afb1ebf27e (diff) | |
download | ruby-632aa7a0fc1416481c3d8934689f2d61be1c843d.tar.gz |
* 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.h | 2 |
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) |