From 8231620264779d56a074efee8b6d65293c701a49 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sat, 26 Apr 2014 20:07:41 +0200 Subject: this fails to link with mingw The error message says "undefined reference to `_imp___Z18_set_se_translatorPFvjP19_EXCEPTION_POINTERSE'". Change-Id: I39d3338a3466fb56dfadbd02af434c0cbf0346e1 --- sal/osl/w32/signal.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sal') diff --git a/sal/osl/w32/signal.cxx b/sal/osl/w32/signal.cxx index 6feec0cc413f..8236bfc3d1f9 100644 --- a/sal/osl/w32/signal.cxx +++ b/sal/osl/w32/signal.cxx @@ -439,11 +439,13 @@ sal_Bool SAL_CALL osl_setErrorReporting( sal_Bool bEnable ) sal_Bool bOld = bErrorReportingEnabled; bErrorReportingEnabled = bEnable; +#if defined _MSC_VER if( !bEnable) // if the crash reporter is disabled { // fall back to handle Window's SEH events as C++ exceptions _set_se_translator( win_seh_translator); } +#endif return bOld; } -- cgit