Use _Exit() when available
This commit is contained in:
1 parent
46af90d8c3
commit
f79190f407
6 files changed
+36
-3
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user