projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d065bae
)
Fix for windows
author
Perttu Ahola
<celeron55@gmail.com>
Tue, 15 Feb 2011 14:12:04 +0000
(16:12 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Tue, 15 Feb 2011 14:12:04 +0000
(16:12 +0200)
src/porting.cpp
patch
|
blob
|
history
diff --git
a/src/porting.cpp
b/src/porting.cpp
index f92b291acd5059ca35c6fc257746afb5e7760a0b..50605587dc1950c5315811d5320cb6480225fa37 100644
(file)
--- a/
src/porting.cpp
+++ b/
src/porting.cpp
@@
-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
*/