[Libreoffice-commits] core.git: sal/osl

David Tardon dtardon at redhat.com
Sat Apr 26 11:25:44 PDT 2014


 sal/osl/w32/signal.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 8231620264779d56a074efee8b6d65293c701a49
Author: David Tardon <dtardon at redhat.com>
Date:   Sat Apr 26 20:07:41 2014 +0200

    this fails to link with mingw
    
    The error message says "undefined reference to
    `_imp___Z18_set_se_translatorPFvjP19_EXCEPTION_POINTERSE'".
    
    Change-Id: I39d3338a3466fb56dfadbd02af434c0cbf0346e1

diff --git a/sal/osl/w32/signal.cxx b/sal/osl/w32/signal.cxx
index 6feec0c..8236bfc 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;
 }


More information about the Libreoffice-commits mailing list