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

ruby-changes:57848

From: Nobuyoshi <ko1@a...>
Date: Sat, 21 Sep 2019 00:48:45 +0900 (JST)
Subject: [ruby-changes:57848] daa4ad8ed7 (master): Disable method definition type checks on Windows

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

From daa4ad8ed7f73e8d5e2a2047fe92e5fe08227627 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 21 Sep 2019 00:48:24 +0900
Subject: Disable method definition type checks on Windows


diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 8b56faa..71a1d2e 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -2711,7 +2711,7 @@ RUBY_SYMBOL_EXPORT_END https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L2711
 # define rb_f_notimplement_p(f) 0
 #endif
 
-#if defined(HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P)
+#if defined(HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P) && !defined(_WIN32) && !defined(__CYGWIN__)
 #if defined(__has_attribute) && __has_attribute(transparent_union) && __has_attribute(unused) && __has_attribute(weakref) && __has_attribute(nonnull)
 #define RB_METHOD_DEFINITION_DECL_C(def,nonnull,defname,decl,vars,funcargs) \
     __attribute__((__unused__,__weakref__(#def),__nonnull__ nonnull))static void defname(RB_UNWRAP_MACRO decl,VALUE(*func)funcargs,int arity);
-- 
cgit v0.10.2


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

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