]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(mempcpy): Define only if not already defined.
authorJim Meyering <jim@meyering.net>
Mon, 12 Jul 1999 08:37:31 +0000 (08:37 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 12 Jul 1999 08:37:31 +0000 (08:37 +0000)
Reported by Collin Rogowski.

src/sys2.h

index 06f70bd1520978014b2048584b14b64a3dee1ca7..a0045f13c06ba94bd6887e243bdaae159141c6b2 100644 (file)
@@ -167,7 +167,7 @@ off_t lseek ();
 
 #include "xalloc.h"
 
-#ifndef HAVE_MEMPCPY
+#if ! defined HAVE_MEMPCPY && ! defined mempcpy
 /* Be CAREFUL that there are no side effects in N.  */
 # define mempcpy(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N)))
 #endif