1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix macro redefinition warning for MacOS

Introduced by 7f64989e5c

./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.
This commit is contained in:
Matt Valentine-House 2022-07-07 15:48:22 +01:00 committed by Nobuyoshi Nakada
parent 0018c2646d
commit 4d8f12ba38
Notes: git 2022-07-08 01:07:42 +09:00

View file

@ -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 */