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.
This commit is contained in:
parent
0018c2646d
commit
4d8f12ba38
Notes:
git
2022-07-08 01:07:42 +09:00
@ -107,6 +107,7 @@ RUBY_SYMBOL_EXPORT_END
|
|||||||
#define RB_BIGNUM_TYPE_P(x) RB_TYPE_P((x), T_BIGNUM)
|
#define RB_BIGNUM_TYPE_P(x) RB_TYPE_P((x), T_BIGNUM)
|
||||||
|
|
||||||
#ifndef __MINGW32__
|
#ifndef __MINGW32__
|
||||||
|
#undef memcpy
|
||||||
#define memcpy ruby_nonempty_memcpy
|
#define memcpy ruby_nonempty_memcpy
|
||||||
#endif
|
#endif
|
||||||
#endif /* RUBY_INTERNAL_H */
|
#endif /* RUBY_INTERNAL_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user