mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-18 01:40:06 +02:00
(mempcpy): Define only if not already defined.
Reported by Collin Rogowski.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user