diff --git a/.gitignore b/.gitignore index 24b465ce..6a26aa12 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ subprojects/lua subprojects/libagg subprojects/reproc lite +error.txt diff --git a/src/main.c b/src/main.c index b0eb50d6..435c15fa 100644 --- a/src/main.c +++ b/src/main.c @@ -12,6 +12,7 @@ #include #include #include + #include #elif __APPLE__ #include #endif @@ -106,6 +107,8 @@ int main(int argc, char **argv) { HINSTANCE lib = LoadLibrary("user32.dll"); int (*SetProcessDPIAware)() = (void*) GetProcAddress(lib, "SetProcessDPIAware"); SetProcessDPIAware(); +#else + signal(SIGPIPE, SIG_IGN); #endif SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS);