diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-10-11 08:29:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-10-11 08:29:22 +0000 |
commit | 5c12c8eecd5f2e06c200651e90befe85efcf166f (patch) | |
tree | dbaed54145d28357e3b145ad8631529ffd0c2344 /libc/stdlib/atexit.c | |
parent | a924265e43cf2fcad97fc9489da482a27b0faf93 (diff) |
Patch from Miles Bader <miles@lsi.nec.co.jp> to support the v850.
He sent this patch to me a month ago, but I forgot to apply it...
Diffstat (limited to 'libc/stdlib/atexit.c')
-rw-r--r-- | libc/stdlib/atexit.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |