summaryrefslogtreecommitdiff
path: root/lib/mempcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mempcpy.c')
-rw-r--r--lib/mempcpy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mempcpy.c b/lib/mempcpy.c
index 39e476dae..c80e119f7 100644
--- a/lib/mempcpy.c
+++ b/lib/mempcpy.c
@@ -19,6 +19,9 @@
/* Specification. */
#include <string.h>
+/* A function definition is only needed if HAVE_MEMPCPY is not defined. */
+#if !HAVE_MEMPCPY
+
/* Copy N bytes of SRC to DEST, return pointer to bytes after the
last written byte. */
void *
@@ -26,3 +29,5 @@ mempcpy (void *dest, const void *src, size_t n)
{
return (char *) memcpy (dest, src, n) + n;
}
+
+#endif