Make the signal handler hint more generic.

This commit is contained in:
Ryan C. Gordon
2015-03-24 14:36:36 -04:00
parent a91a5604cd
commit 672ccb4f54
2 changed files with 6 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ SDL_HandleSIG(int sig)
int
SDL_QuitInit(void)
{
const char *hint = SDL_GetHint(SDL_HINT_DISABLE_SIGINT_HANDLER);
const char *hint = SDL_GetHint(SDL_HINT_NO_SIGNAL_HANDLERS);
disable_signals = hint && (SDL_atoi(hint) == 1);
if (disable_signals) {
return 0;