Use own signal handler only on Windows with MSVC

This commit is contained in:
wmayer 2012-11-05 16:42:11 +01:00
parent e432930f21
commit 0f6365ee4a

View File

@ -941,10 +941,12 @@ void Application::init(int argc, char ** argv)
#endif
// if an unexpected crash occurs we can install a handler function to
// write some additional information
#ifdef _MSC_VER // Microsoft compiler
std::signal(SIGSEGV,segmentation_fault_handler);
std::signal(SIGABRT,segmentation_fault_handler);
std::set_terminate(unhandled_exception_handler);
std::set_unexpected(unexpection_error_handler);
#endif
initTypes();