mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix for windows
This commit is contained in:
parent
d065bae323
commit
40556f4b2d
1 changed files with 7 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue