platform.h: mempcpy needs <string.h>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
ff3f3accc6
commit
8c05a74f7e
@ -516,6 +516,7 @@ extern char *stpcpy(char *p, const char *to_add) FAST_FUNC;
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_MEMPCPY
|
||||
#include <string.h>
|
||||
static ALWAYS_INLINE void *mempcpy(void *dest, const void *src, size_t len)
|
||||
{
|
||||
return memcpy(dest, src, len) + len;
|
||||
|
Loading…
Reference in New Issue
Block a user