From 9592773ed84caae01bd23150c52f083c1200092f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 7 Aug 2022 17:03:30 +0200 Subject: user/libc: port dlmalloc --- src/user/lib/include/stdlib.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/user/lib/include/stdlib.h') diff --git a/src/user/lib/include/stdlib.h b/src/user/lib/include/stdlib.h index de6e550..7f6630d 100644 --- a/src/user/lib/include/stdlib.h +++ b/src/user/lib/include/stdlib.h @@ -1,7 +1,8 @@ #pragma once #include -void *malloc(size_t size); -void free(void *ptr); +#ifndef NO_MALLOC_H +#include +#endif _Noreturn void abort(void); -- cgit v1.2.3