From 40556f4b2deea7872456d8f9d7a4fa8aa954ea11 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 15 Feb 2011 16:12:04 +0200 Subject: [PATCH] Fix for windows --- src/porting.cpp | 14 +++++++------- 1 file 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 -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 */