z80: add memmove prototype
authorAlan Cox <alan@linux.intel.com>
Sat, 30 Jun 2018 22:07:58 +0000 (23:07 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 30 Jun 2018 22:07:58 +0000 (23:07 +0100)
Kernel/cpu-z80/cpu.h

index 3c8de8e..859500a 100644 (file)
@@ -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