From 116458be4ee18a4ede9ba1b88a0eee585507ed4c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 7 Jul 2009 09:35:56 +0000 Subject: [PATCH] fix linking error when wxUSE_ON_FATAL_EXCEPTION==0 (closes #10969) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/stackwalk.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/stackwalk.cpp b/src/msw/stackwalk.cpp index 35f37b06bf..dedcaab588 100644 --- a/src/msw/stackwalk.cpp +++ b/src/msw/stackwalk.cpp @@ -318,6 +318,8 @@ void wxStackWalker::WalkFrom(const _EXCEPTION_POINTERS *ep, size_t skip) void wxStackWalker::WalkFromException() { + // wxGlobalSEInformation is unavailable if wxUSE_ON_FATAL_EXCEPTION==0 +#if wxUSE_ON_FATAL_EXCEPTION extern EXCEPTION_POINTERS *wxGlobalSEInformation; wxCHECK_RET( wxGlobalSEInformation, @@ -325,6 +327,7 @@ void wxStackWalker::WalkFromException() // don't skip any frames, the first one is where we crashed WalkFrom(wxGlobalSEInformation, 0); +#endif // wxUSE_ON_FATAL_EXCEPTION } void wxStackWalker::Walk(size_t skip, size_t WXUNUSED(maxDepth))