summaryrefslogtreecommitdiff
path: root/libc/string/generic/mempcpy.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-12-22 10:56:08 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-12-22 14:32:49 +0100
commit2a3ffa836a3a9f94f19ee2671f41c1851221a105 (patch)
treec741bd03f75cac3b88f7b094423b7832eef71c17 /libc/string/generic/mempcpy.c
parent74b17c7956b8f0bd109b0fd26a8a9869441d09bf (diff)
Use gcc's __builtin_mempcpy() as __mempcpy(), if possible
Patch from OpenWrt. Reported-by: Leonid Lisovskiy <lly.dev@gmail.com>
Diffstat (limited to 'libc/string/generic/mempcpy.c')
-rw-r--r--libc/string/generic/mempcpy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/string/generic/mempcpy.c b/libc/string/generic/mempcpy.c
index d7fa79ef5..bb5563a6a 100644
--- a/libc/string/generic/mempcpy.c
+++ b/libc/string/generic/mempcpy.c
@@ -16,4 +16,5 @@ void *mempcpy (void *dstpp, const void *srcpp, size_t len)
return (void *)(((char *)dstpp) + len);
}
libc_hidden_weak(mempcpy)
+strong_alias(mempcpy,__mempcpy)
#endif