do not define our own version of memcpy

The (sole) use of memcpy in our public header is now replaced to
directly call ruby_nonempty_memcpy, and the previous definition of
memcpy is now internal-only.  [Bug#18893]
This commit is contained in:
卜部昌平 2022-07-06 09:18:28 +09:00
parent 8794cc6289
commit 7f64989e5c
Notes: git 2022-07-07 22:11:16 +09:00
2 changed files with 4 additions and 5 deletions

View file

@ -106,4 +106,7 @@ RUBY_SYMBOL_EXPORT_END
#define RBOOL(v) ((v) ? Qtrue : Qfalse)
#define RB_BIGNUM_TYPE_P(x) RB_TYPE_P((x), T_BIGNUM)
#ifndef __MINGW32__
#define memcpy ruby_nonempty_memcpy
#endif
#endif /* RUBY_INTERNAL_H */