mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Fix for windows
This commit is contained in:
parent
d065bae323
commit
40556f4b2d
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user