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
This commit is contained in:
Vadim Zeitlin
2009-07-07 09:35:56 +00:00
parent 0bb590d611
commit 116458be4e

View File

@@ -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))