1
0
Fork 0
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:
Nobuyoshi Nakada 2019-10-12 22:08:50 +09:00
parent cb14c4a535
commit 7ebf9da788
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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))