From 5191d18ebf3b03b6a77b64bdc36ee9df59caae11 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 30 Jun 2018 23:07:58 +0100 Subject: [PATCH] z80: add memmove prototype --- Kernel/cpu-z80/cpu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Kernel/cpu-z80/cpu.h b/Kernel/cpu-z80/cpu.h index 3c8de8e0..859500af 100644 --- a/Kernel/cpu-z80/cpu.h +++ b/Kernel/cpu-z80/cpu.h @@ -47,6 +47,8 @@ extern char *strncpy(char *dest, const char *src, size_t n); extern char *strchr(const char *s, int c); extern void *memset(void *dest, int c, size_t n); #endif +/* There is no compiler optimized inline memmove */ +extern void *memmove(void *dest, const void *src, size_t n); extern int16_t strlen(const char *p); @@ -91,4 +93,4 @@ typedef union { /* this structure is endian dependent */ /* SDCC does not support attribute(packed) but then it also doesn't insert padding either */ -#define __packed \ No newline at end of file +#define __packed -- 2.34.1