From: Perttu Ahola Date: Tue, 15 Feb 2011 14:12:04 +0000 (+0200) Subject: Fix for windows X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=40556f4b2deea7872456d8f9d7a4fa8aa954ea11;p=zefram%2Fminetest%2Fminetest_engine.git Fix for windows --- diff --git a/src/porting.cpp b/src/porting.cpp index f92b291a..50605587 100644 --- a/src/porting.cpp +++ b/src/porting.cpp @@ -33,11 +33,16 @@ namespace porting Signal handler (grabs Ctrl-C on POSIX systems) */ +bool g_killed = false; + +bool * signal_handler_killstatus(void) +{ + return &g_killed; +} + #if !defined(_WIN32) // POSIX #include -bool g_killed = false; - void sigint_handler(int sig) { if(g_killed == false) @@ -67,11 +72,6 @@ void signal_handler_init(void) #endif -bool * signal_handler_killstatus(void) -{ - return &g_killed; -} - /* Path mangler */