diff --git a/src/crash.cpp b/src/crash.cpp index 7368b1117bd91..305000a317070 100644 --- a/src/crash.cpp +++ b/src/crash.cpp @@ -15,6 +15,10 @@ #include #include +#if !(defined(WIN32) || defined(TILES) || defined(CYGWIN)) +#include +#endif + #if defined(TILES) #include "sdl_wrappers.h" #endif @@ -135,6 +139,9 @@ extern "C" { default: return; } +#if !(defined(WIN32) || defined(TILES)) && !defined(CYGWIN) + endwin(); +#endif if( !isDebuggerActive() ) { log_crash( "Signal", msg ); }