[前][次][番号順一覧][スレッド一覧]

ruby-changes:58225

From: Nobuyoshi <ko1@a...>
Date: Sat, 12 Oct 2019 22:19:10 +0900 (JST)
Subject: [ruby-changes:58225] 7ebf9da788 (master): Also moved fallback definition of __has_attribute

https://git.ruby-lang.org/ruby.git/commit/?id=7ebf9da788

From 7ebf9da78830cd13895a38809b0c6f1fc6797620 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 12 Oct 2019 22:08:50 +0900
Subject: Also moved fallback definition of __has_attribute


diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index b6e9cd9..b9471a7 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -21,6 +21,10 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L21
 #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 d07fd18..b144fa0 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 https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L2353
 
 # 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))
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]