summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-21 00:48:24 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-21 00:48:24 +0900
commitdaa4ad8ed7f73e8d5e2a2047fe92e5fe08227627 (patch)
treeadd04fca074974073fa4e54c295c4780c489c513 /include
parentfe1e623faea75952f27baa949a7468021443c12a (diff)
Disable method definition type checks on Windows
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 8b56faa496..71a1d2e83d 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -2711,7 +2711,7 @@ RUBY_SYMBOL_EXPORT_END
# 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);