summaryrefslogtreecommitdiffstats
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
commit711a531de4fcdbc288de1553abad120d841eff98 (patch)
treeb584770662189e3f38d99f7529b2ac69c3a190d5 /include
parent0c42849bce831ad8a427813824cbd7ac36ad96e9 (diff)
downloadruby-711a531de4fcdbc288de1553abad120d841eff98.tar.gz
ruby-711a531de4fcdbc288de1553abad120d841eff98.tar.xz
ruby-711a531de4fcdbc288de1553abad120d841eff98.zip
* include/ruby/ruby.h (NUM2CHR): prefix __extension__ for
braced-groups within expressions. git-svn-id: http://svn.ruby-lang.org/repos/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 55836a8fd..84bce04c0 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)