diff --git a/src/libruntime/jerry-libc.c b/src/libruntime/jerry-libc.c index f3b82f0ea..f0e14c802 100644 --- a/src/libruntime/jerry-libc.c +++ b/src/libruntime/jerry-libc.c @@ -32,6 +32,11 @@ extern void *memcpy(void *s1, const void*s2, size_t n); */ extern void *memset(void *s, int c, size_t n); +/** + * memmove alias to __memmove (for compiler usage) + */ +extern void *memmove(void *s1, const void*s2, size_t n); + /** * memcpy alias to __memcpy (for compiler usage) */ @@ -51,6 +56,16 @@ void* memset(void *s, /**< area to set values in */ { return __memset(s, c, n); } /* memset */ + +/** + * memmove alias to __memmove (for compiler usage) + */ +void* memmove(void *s1, /**< destination*/ + const void*s2, /**< source */ + size_t n) /**< area size */ +{ + return __memmove(s1, s2, n); +} /* memmove */ #endif /* LIBC_MUSL */ /**