ruby-changes:72456
From: Matt <ko1@a...>
Date: Fri, 8 Jul 2022 01:07:35 +0900 (JST)
Subject: [ruby-changes:72456] 4d8f12ba38 (master): Fix macro redefinition warning for MacOS
https://git.ruby-lang.org/ruby.git/commit/?id=4d8f12ba38 From 4d8f12ba3806c735692429f1920a757024a935cc Mon Sep 17 00:00:00 2001 From: Matt Valentine-House <matt@e...> Date: Thu, 7 Jul 2022 15:48:22 +0100 Subject: Fix macro redefinition warning for MacOS Introduced by 7f64989e5c913ef7624e084badd1a43ce65b3ccc ./internal.h:110:9: warning: 'memcpy' macro redefined [-Wmacro-redefined] ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_string.h:62:9: note: previous definition is here ^ 1 warning generated. --- internal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/internal.h b/internal.h index 236d68524c..0740ae99e5 100644 --- a/internal.h +++ b/internal.h @@ -107,6 +107,7 @@ RUBY_SYMBOL_EXPORT_END https://github.com/ruby/ruby/blob/trunk/internal.h#L107 #define RB_BIGNUM_TYPE_P(x) RB_TYPE_P((x), T_BIGNUM) #ifndef __MINGW32__ +#undef memcpy #define memcpy ruby_nonempty_memcpy #endif #endif /* RUBY_INTERNAL_H */ -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/