diff --git a/include/SDL_quit.h b/include/SDL_quit.h index ef8857020..d6f11a80c 100644 --- a/include/SDL_quit.h +++ b/include/SDL_quit.h @@ -53,6 +53,6 @@ /* There are no functions directly affecting the quit event */ #define SDL_QuitRequested() \ - (SDL_PumpEvents(), SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT)) + (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0)) #endif /* _SDL_quit_h */