mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Also moved fallback definition of __has_attribute
This commit is contained in:
parent
cb14c4a535
commit
7ebf9da788
2 changed files with 4 additions and 4 deletions
|
@ -21,6 +21,10 @@ extern "C" {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(__has_attribute)
|
||||
#define __has_attribute(x) 0
|
||||
#endif
|
||||
|
||||
#include "ruby/defines.h"
|
||||
#ifdef RUBY_EXTCONF_H
|
||||
#include RUBY_EXTCONF_H
|
||||
|
|
|
@ -2353,10 +2353,6 @@ ERRORFUNC(("variable argument length doesn't match"), void rb_scan_args_length_m
|
|||
|
||||
# define rb_scan_args_isdigit(c) ((unsigned char)((c)-'0')<10)
|
||||
|
||||
#if !defined(__has_attribute)
|
||||
#define __has_attribute(x) 0
|
||||
#endif
|
||||
|
||||
# define rb_scan_args_count_end(fmt, ofs, vari) \
|
||||
(fmt[ofs] ? -1 : (vari))
|
||||
|
||||
|
|
Loading…
Reference in a new issue