Fix for windows

master
Perttu Ahola 2011-02-15 16:12:04 +02:00
parent d065bae323
commit 40556f4b2d
1 changed files with 7 additions and 7 deletions

View 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
*/