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

Get ruby_nonempty_memcpy to have C linkage

Fixes [Bug #17788]
This commit is contained in:
xtkoba 2021-04-29 23:26:16 +09:00 committed by 卜部昌平
parent cb955dc9ac
commit 29f6f79e73
Notes: git 2021-07-13 22:55:42 +09:00

View file

@ -256,6 +256,7 @@ rb_alloc_tmp_buffer2(volatile VALUE *store, long count, size_t elsize)
}
#ifndef __MINGW32__
RBIMPL_SYMBOL_EXPORT_BEGIN()
RBIMPL_ATTR_NOALIAS()
RBIMPL_ATTR_NONNULL((1))
RBIMPL_ATTR_RETURNS_NONNULL()
@ -272,6 +273,7 @@ ruby_nonempty_memcpy(void *dest, const void *src, size_t n)
return dest;
}
}
RBIMPL_SYMBOL_EXPORT_END()
#undef memcpy
#define memcpy ruby_nonempty_memcpy
#endif