Use _Exit() when available
This commit is contained in:
parent
46af90d8c3
commit
f79190f407
6 changed files with 36 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue