summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-04-26 20:07:41 +0200
committerDavid Tardon <dtardon@redhat.com>2014-04-26 20:25:09 +0200
commit8231620264779d56a074efee8b6d65293c701a49 (patch)
treef62305ecc6a24a46534a17aaec44daa2fdcf8e5c /sal
parent39a060442cb1148e976c4f2316d0449dd285e8df (diff)
this fails to link with mingw
The error message says "undefined reference to `_imp___Z18_set_se_translatorPFvjP19_EXCEPTION_POINTERSE'". Change-Id: I39d3338a3466fb56dfadbd02af434c0cbf0346e1
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/signal.cxx2
1 files changed, 2 insertions, 0 deletions
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;
}