diff options
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/intern.h | 4 | ||||
-rw-r--r-- | include/ruby/ruby.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index b6e9cd98e6..b9471a7097 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -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 diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index d07fd18496..b144fa0111 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.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)) |