ruby-changes:66780
From: xtkoba <ko1@a...>
Date: Tue, 13 Jul 2021 22:55:35 +0900 (JST)
Subject: [ruby-changes:66780] 29f6f79e73 (master): Get `ruby_nonempty_memcpy` to have C linkage
https://git.ruby-lang.org/ruby.git/commit/?id=29f6f79e73 From 29f6f79e7396018962eb25c5f5e409f5fe28a73b Mon Sep 17 00:00:00 2001 From: xtkoba <69125751+xtkoba@u...> Date: Thu, 29 Apr 2021 23:26:16 +0900 Subject: Get `ruby_nonempty_memcpy` to have C linkage Fixes [Bug #17788] --- include/ruby/internal/memory.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ruby/internal/memory.h b/include/ruby/internal/memory.h index 7d24df4..1f95387 100644 --- a/include/ruby/internal/memory.h +++ b/include/ruby/internal/memory.h @@ -256,6 +256,7 @@ rb_alloc_tmp_buffer2(volatile VALUE *store, long count, size_t elsize) https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/memory.h#L256 } #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) https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/memory.h#L273 return dest; } } +RBIMPL_SYMBOL_EXPORT_END() #undef memcpy #define memcpy ruby_nonempty_memcpy #endif -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/