From 17d17de0e8891bba2ab509714fc52764eaeafd65 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 26 May 2020 14:19:20 +0900 Subject: Get rid of redefinition of memcpy on mingw --- include/ruby/internal/memory.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ruby') diff --git a/include/ruby/internal/memory.h b/include/ruby/internal/memory.h index 5214f2b391..0128a7f748 100644 --- a/include/ruby/internal/memory.h +++ b/include/ruby/internal/memory.h @@ -264,6 +264,7 @@ rb_alloc_tmp_buffer2(volatile VALUE *store, long count, size_t elsize) store, rbimpl_size_mul_or_raise(count, elsize), count); } +#ifndef __MINGW32__ RBIMPL_ATTR_NOALIAS() RBIMPL_ATTR_NONNULL((1)) RBIMPL_ATTR_RETURNS_NONNULL() @@ -282,5 +283,6 @@ ruby_nonempty_memcpy(void *dest, const void *src, size_t n) } #undef memcpy #define memcpy ruby_nonempty_memcpy +#endif #endif /* RBIMPL_MEMORY_H */ -- cgit v1.2.3