ruby-changes:51746
From: kazu <ko1@a...>
Date: Thu, 12 Jul 2018 12:59:17 +0900 (JST)
Subject: [ruby-changes:51746] kazu:r63958 (trunk): Fix compile error on debian8 and gentoo
kazu 2018-07-12 12:59:13 +0900 (Thu, 12 Jul 2018) New Revision: 63958 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63958 Log: 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) ^ ``` Modified files: trunk/include/ruby/ruby.h Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 63957) +++ include/ruby/ruby.h (revision 63958) @@ -2210,7 +2210,10 @@ ERRORFUNC(("variable argument length doe https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L2210 # 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/