From 0f6365ee4a4a805e27db499e224187ee588a5ea9 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 5 Nov 2012 16:42:11 +0100 Subject: [PATCH] Use own signal handler only on Windows with MSVC --- src/App/Application.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App/Application.cpp b/src/App/Application.cpp index 948748fcc..b8ca0f770 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -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();