diff --git a/client/main.c b/client/main.c index e32a027..c03411a 100644 --- a/client/main.c +++ b/client/main.c @@ -6,6 +6,10 @@ #include #include +#ifndef _WIN32 +#include +#endif + static MwWidget window, opengl; static GSEngine engine; @@ -50,9 +54,11 @@ static void after_render(GSEngine self){ rot[0] = rot[1] = rot[2] += (1.0 / GSEngineGetTPS(self)) * 90; } +#ifndef _WIN32 static void shutdown_engine(int sig){ GSEngineShutdown(engine); } +#endif int main(int argc, char** argv){ GSEngineParam param; @@ -71,8 +77,10 @@ int main(int argc, char** argv){ if((engine = GSEngineCreate(¶m)) != NULL){ GSSound sound; +#ifndef _WIN32 signal(SIGINT, shutdown_engine); signal(SIGTERM, shutdown_engine); +#endif model = GSModelOpen(engine, "game:/mdl/fish.gsm");