Make compatible with Win

This commit is contained in:
Miloslav Číž 2020-10-09 17:45:23 +02:00
parent 0df90d3fb7
commit 93947c98a0

View File

@ -73,8 +73,11 @@
#include <emscripten.h> #include <emscripten.h>
#endif #endif
#if !SFG_OS_IS_MALWARE
#include <signal.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <signal.h>
#include <unistd.h> #include <unistd.h>
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
@ -439,9 +442,11 @@ int main(int argc, char *argv[])
SDL_Init(SDL_INIT_AUDIO); SDL_Init(SDL_INIT_AUDIO);
#if !SFG_OS_IS_MALWARE
signal(SIGINT,handleSignal); signal(SIGINT,handleSignal);
signal(SIGQUIT,handleSignal); signal(SIGQUIT,handleSignal);
signal(SIGTERM,handleSignal); signal(SIGTERM,handleSignal);
#endif
SDL_AudioSpec audioSpec; SDL_AudioSpec audioSpec;