Fix for windows
authorPerttu Ahola <celeron55@gmail.com>
Tue, 15 Feb 2011 14:12:04 +0000 (16:12 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 15 Feb 2011 14:12:04 +0000 (16:12 +0200)
src/porting.cpp

index f92b291acd5059ca35c6fc257746afb5e7760a0b..50605587dc1950c5315811d5320cb6480225fa37 100644 (file)
@@ -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
 */