summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorxtkoba <69125751+xtkoba@users.noreply.github.com>2021-04-29 23:26:16 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-07-13 22:55:17 +0900
commit29f6f79e7396018962eb25c5f5e409f5fe28a73b (patch)
treea0a10f8630e6c4d3781221f67bf82056e498c119 /include
parentcb955dc9ac28ace4b9463261b425ac32750b053c (diff)
Get `ruby_nonempty_memcpy` to have C linkage
Fixes [Bug #17788]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4429
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/memory.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/internal/memory.h b/include/ruby/internal/memory.h
index 7d24df4945..1f95387416 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)
}
#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