From: Perttu Ahola Date: Tue, 15 Feb 2011 14:12:04 +0000 (+0200) Subject: Fix for windows X-Git-Tag: 0.2.20110731_3~367 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=40556f4b2deea7872456d8f9d7a4fa8aa954ea11;p=oweals%2Fminetest.git Fix for windows --- diff --git a/src/porting.cpp b/src/porting.cpp index f92b291ac..50605587d 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 */