зеркало из https://github.com/github/ruby.git
Also moved fallback definition of __has_attribute
This commit is contained in:
Родитель
cb14c4a535
Коммит
7ebf9da788
|
@ -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))
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче