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

ruby-changes:57434

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Sat, 31 Aug 2019 15:30:29 +0900 (JST)
Subject: [ruby-changes:57434] 卜部昌平: 4868ad7e5b (master): fix CI failures in x64-mingw32

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

From 4868ad7e5b3065f9d94cc7e70889c9d31ebe88cc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Sat, 31 Aug 2019 13:31:21 +0900
Subject: fix CI failures in x64-mingw32

For insatnce
https://ci.appveyor.com/project/ruby/ruby/builds/27086475/job/mb9whkiygemlfy93

diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index 301bf52..1a17340 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -1003,7 +1003,7 @@ RUBY_SYMBOL_EXPORT_END https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L1003
 }  /* extern "C" { */
 #endif
 
-#if defined(__has_attribute) && defined(HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P)
+#if defined(__has_attribute) && defined(HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P) && !defined(_WIN32)
 #if __has_attribute(transparent_union) && __has_attribute(unused) && __has_attribute(weakref) && __has_attribute(nonnull)
 __attribute__((__unused__,__weakref__("rb_define_method_id"),__nonnull__(3)))static void rb_define_method_idm3(VALUE,ID,VALUE(*)(ANYARGS),int);
 __attribute__((__unused__,__weakref__("rb_define_method_id"),__nonnull__(3)))static void rb_define_method_idm2(VALUE,ID,VALUE(*)(VALUE,VALUE),int);
@@ -1171,19 +1171,4 @@ __attribute__((__unused__,__weakref__("rb_define_singleton_method"),__nonnull__( https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L1171
 #endif
 #endif
 
-#ifdef _WIN32
-#ifdef rb_define_method_id
-#undef rb_define_method_id
-#endif
-#ifdef rb_define_private_function
-#undef rb_define_private_function
-#endif
-#ifdef rb_define_protected_function
-#undef rb_define_protected_function
-#endif
-#ifdef rb_define_singleton_function
-#undef rb_define_singleton_function
-#endif
-#endif
-
 #endif /* RUBY_INTERN_H */
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 8764443..652dcc3 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -2689,7 +2689,7 @@ RUBY_SYMBOL_EXPORT_END https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L2689
 }  /* extern "C" { */
 #endif
 
-#if defined(__has_attribute) && defined(HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P)
+#if defined(__has_attribute) && defined(HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P) && !defined(_WIN32)
 #if __has_attribute(transparent_union) && __has_attribute(unused) && __has_attribute(weakref) && __has_attribute(nonnull)
 __attribute__((__unused__,__weakref__("rb_define_method"),__nonnull__(2,3)))static void rb_define_methodm3(VALUE,const char*,VALUE(*)(ANYARGS),int);
 __attribute__((__unused__,__weakref__("rb_define_method"),__nonnull__(2,3)))static void rb_define_methodm2(VALUE,const char*,VALUE(*)(VALUE,VALUE),int);
@@ -2818,16 +2818,4 @@ __attribute__((__unused__,__weakref__("rb_define_global_function"),__nonnull__(1 https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L2818
 #endif
 #endif
 
-#ifdef _WIN32
-#ifdef rb_define_method
-#undef rb_define_method
-#endif
-#ifdef rb_define_module_function
-#undef rb_define_module_function
-#endif
-#ifdef rb_define_global_function
-#undef rb_define_global_function
-#endif
-#endif
-
 #endif /* RUBY_RUBY_H */
-- 
cgit v0.10.2


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

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