summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2022-07-07 15:48:22 +0100
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-08 01:07:19 +0900
commit4d8f12ba3806c735692429f1920a757024a935cc (patch)
tree601ac9aaf0e63c7decc4e86e31ffb2e011ee7246 /internal.h
parent0018c2646d9c428141c5490a4015d4b433d669f2 (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6104
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h1
1 files changed, 1 insertions, 0 deletions
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
#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 */