Clang: implement memset local to C++ runtime
Using Genode::memset with Clang results in recursion.
This commit is contained in:
parent
f42e7f1ff4
commit
44f2c86a91
|
@ -166,7 +166,8 @@ void *memmove(void *dst, const void *src, size_t n)
|
|||
extern "C" __attribute__((weak))
|
||||
void *memset(void *s, int c, size_t n)
|
||||
{
|
||||
return Genode::memset(s, c, n);
|
||||
while (n--) ((char *)s)[n] = c;
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user