diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-02-15 16:12:04 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-02-15 16:12:04 +0200 |
commit | 40556f4b2deea7872456d8f9d7a4fa8aa954ea11 (patch) | |
tree | af32641c3556ed13926e8cd826c17e8da8126cba | |
parent | d065bae323838734556de2693b6b004c98c95092 (diff) | |
download | minetest-40556f4b2deea7872456d8f9d7a4fa8aa954ea11.tar.gz minetest-40556f4b2deea7872456d8f9d7a4fa8aa954ea11.tar.bz2 minetest-40556f4b2deea7872456d8f9d7a4fa8aa954ea11.zip |
Fix for windows
-rw-r--r-- | src/porting.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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 <signal.h> -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 */ |