diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-02 06:41:45 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-02 06:41:45 +0000 |
commit | 67b547d06a35d928113fc66208a6310f335e6935 (patch) | |
tree | daaaae93adf3a5cc45d06e25ab17166a79373b53 /internal.h | |
parent | ef19834ed927293738b648b15c084ca0d0f52dad (diff) | |
download | ruby-67b547d06a35d928113fc66208a6310f335e6935.tar.gz |
__VA_ARGS__ is a C99ism
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.h b/internal.h index 4b4dace768..94c8f3ff67 100644 --- a/internal.h +++ b/internal.h @@ -1053,7 +1053,7 @@ VALUE rb_ary_aref1(VALUE ary, VALUE i); VALUE rb_ary_aref2(VALUE ary, VALUE b, VALUE e); size_t rb_ary_memsize(VALUE); VALUE rb_to_array_type(VALUE obj); -#ifdef __GNUC__ +#if defined(__GNUC__) && defined(HAVE_VA_ARGS_MACRO) #define rb_ary_new_from_args(n, ...) \ __extension__ ({ \ const VALUE args_to_new_ary[] = {__VA_ARGS__}; \ |