diff options
| author | mniip <mniip@mniip.com> | 2013-05-19 06:02:42 (GMT) |
|---|---|---|
| committer | mniip <mniip@mniip.com> | 2013-05-19 06:02:42 (GMT) |
| commit | 3979395e651a5b45fa1b96a19646b72e4a20e2f8 (patch) | |
| tree | f93deeea4023f5872c6e3cd86ffa0f0e847de302 /src/PowderToySDL.cpp | |
| parent | 3a640fee3f20cbc82e2557271039d65c852a4817 (diff) | |
| download | powder-3979395e651a5b45fa1b96a19646b72e4a20e2f8.zip powder-3979395e651a5b45fa1b96a19646b72e4a20e2f8.tar.gz | |
reenable sighandlers for winderp
Diffstat (limited to 'src/PowderToySDL.cpp')
| -rw-r--r-- | src/PowderToySDL.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index 81c3093..94559b2 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -16,8 +16,8 @@ #include "graphics/Graphics.h" #if defined(LIN) #include "icon.h" -#include <signal.h> #endif +#include <signal.h> #ifndef WIN #include <unistd.h> @@ -667,7 +667,6 @@ void BlueScreen(char * detailMessage){ } } -#ifndef WIN void SigHandler(int signal) { switch(signal){ @@ -685,7 +684,6 @@ void SigHandler(int signal) break; } } -#endif int main(int argc, char * argv[]) { @@ -783,14 +781,12 @@ int main(int argc, char * argv[]) engine->SetFastQuit(Client::Ref().GetPrefBool("FastQuit", true)); #ifndef DEBUG -#ifndef WIN //Get ready to catch any dodgy errors signal(SIGSEGV, SigHandler); signal(SIGFPE, SigHandler); signal(SIGILL, SigHandler); signal(SIGABRT, SigHandler); #endif -#endif GameController * gameController = NULL; #ifndef DEBUG |
