diff options
Diffstat (limited to 'src/porting.cpp')
-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 */ |