mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 14:23:44 -07:00
use _Exit(0) on linux
This commit is contained in:
parent
40f13ff2e6
commit
1b3907f232
2 changed files with 10 additions and 0 deletions
|
@ -440,7 +440,12 @@ static void gfx_glx_handle_events(void) {
|
|||
}
|
||||
}
|
||||
if (xev.type == ClientMessage && (Atom)xev.xclient.data.l[0] == glx.atom_wm_delete_window) {
|
||||
#ifndef __linux__
|
||||
exit(0);
|
||||
#endif
|
||||
#ifdef __linux__
|
||||
_Exit(0);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -250,7 +250,12 @@ static void gfx_sdl_handle_events(void) {
|
|||
}
|
||||
break;
|
||||
case SDL_QUIT:
|
||||
#ifndef __linux__
|
||||
exit(0);
|
||||
#endif
|
||||
#ifdef __linux__
|
||||
_Exit(0);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue