summaryrefslogtreecommitdiff
path: root/libc/string/generic/mempcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/generic/mempcpy.c')
-rw-r--r--libc/string/generic/mempcpy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/string/generic/mempcpy.c b/libc/string/generic/mempcpy.c
index ea4dec2b1..ac91541a5 100644
--- a/libc/string/generic/mempcpy.c
+++ b/libc/string/generic/mempcpy.c
@@ -5,8 +5,10 @@
/* Ditch the glibc version and just wrap memcpy. */
+#define _GNU_SOURCE
#include <string.h>
+libc_hidden_proto(mempcpy)
libc_hidden_proto(memcpy)
void *mempcpy (void *dstpp, const void *srcpp, size_t len)
@@ -14,5 +16,4 @@ void *mempcpy (void *dstpp, const void *srcpp, size_t len)
memcpy(dstpp, srcpp, len);
return (void *)(((char *)dstpp) + len);
}
-libc_hidden_proto(mempcpy)
libc_hidden_def(mempcpy)