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); +}