mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-22 07:18:49 -05:00
Make compatible with Win
This commit is contained in:
parent
0df90d3fb7
commit
93947c98a0
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user