From ea009ce10b9e45119b2a3a9c51af38bcba5cde26 Mon Sep 17 00:00:00 2001 From: James Benton Date: Sun, 30 Sep 2018 08:37:57 +0100 Subject: [PATCH] wutcrt: Forward newlib _exit to the coreinit.rpl _Exit --- libraries/wutcrt/wut_crt.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libraries/wutcrt/wut_crt.c b/libraries/wutcrt/wut_crt.c index 21b6fa4..80d8097 100644 --- a/libraries/wutcrt/wut_crt.c +++ b/libraries/wutcrt/wut_crt.c @@ -37,3 +37,12 @@ __fini_wut() __fini_wut_newlib(); } } + +// Forward newlib _exit to the coreinit.rpl _Exit +extern void _Exit(int status); + +void +_exit(int status) +{ + _Exit(status); +}