From 5c12c8eecd5f2e06c200651e90befe85efcf166f Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 11 Oct 2001 08:29:22 +0000 Subject: Patch from Miles Bader to support the v850. He sent this patch to me a month ago, but I forgot to apply it... --- libc/stdlib/atexit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/stdlib/atexit.c') diff --git a/libc/stdlib/atexit.c b/libc/stdlib/atexit.c index 503e3da1f..45ecefe9c 100644 --- a/libc/stdlib/atexit.c +++ b/libc/stdlib/atexit.c @@ -46,7 +46,8 @@ static void atexit_handler(void) for (count = __atexit_count ; count-- ; ) { (*__atexit_table[count])(); } - __stdio_close_all(); + if (__stdio_close_all) + __stdio_close_all(); } int atexit(vfuncp ptr) -- cgit v1.2.3