1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix compile error on debian8 and gentoo

https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian8/ruby-trunk/log/20180711T213004Z.log.html.gz#miniruby
https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/ruby-trunk/log/20180711T213003Z.log.html.gz#miniruby
```
./include/ruby/ruby.h:2213:49: error: missing binary operator before token "("
 # if defined(__has_attribute) && __has_attribute(diagnose_if)
                                                 ^
```

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2018-07-12 03:59:13 +00:00
parent 1c904182d2
commit bcf8ce8494

View file

@ -2210,7 +2210,10 @@ ERRORFUNC(("variable argument length doesn't match"), int rb_scan_args_length_mi
# define rb_scan_args_isdigit(c) ((unsigned char)((c)-'0')<10)
# if defined(__has_attribute) && __has_attribute(diagnose_if)
#if !defined(__has_attribute)
#define __has_attribute(x) 0
#endif
# if __has_attribute(diagnose_if)
# define rb_scan_args_count_end(fmt, ofs, varc, vari) \
(fmt[ofs] ? rb_scan_args_bad_format(fmt) : (vari))
# else