Skip to content
Snippets Groups Projects
Commit 40556f4b authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Fix for windows

parent d065bae3
No related branches found
No related tags found
No related merge requests found
......@@ -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
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment