diff options
Diffstat (limited to 'newlib/libc/stdlib/__atexit.c')
-rw-r--r-- | newlib/libc/stdlib/__atexit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/__atexit.c b/newlib/libc/stdlib/__atexit.c index 18e47dc95..b53402670 100644 --- a/newlib/libc/stdlib/__atexit.c +++ b/newlib/libc/stdlib/__atexit.c @@ -39,7 +39,9 @@ #include "atexit.h" /* Make this a weak reference to avoid pulling in malloc. */ +#ifndef MALLOC_PROVIDED void * malloc(size_t) _ATTRIBUTE((__weak__)); +#endif #ifdef _LITE_EXIT /* As __call_exitprocs is weak reference in lite exit, make a |