Use _Exit() when available

This commit is contained in:
Sam Lantinga 2019-04-23 07:59:31 -07:00
parent 46af90d8c3
commit f79190f407
6 changed files with 36 additions and 3 deletions

View file

@ -135,9 +135,13 @@ static void SDL_ExitProcess(int exitcode)
emscripten_cancel_main_loop(); /* this should "kill" the app. */
emscripten_force_exit(exitcode); /* this should "kill" the app. */
exit(exitcode);
#else
#ifdef HAVE__EXIT /* Upper case _Exit() */
_Exit(exitcode);
#else
_exit(exitcode);
#endif
#endif
}