X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d6a27b234b570fa4d673c375158be654ff69b02..b28a58d71c645a11d5ccacecbff78bfe58683105:/src/common/appbase.cpp diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index afea12306a..b333b2fc6c 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -68,7 +68,7 @@ #endif // __WXMAC__ #ifdef __WXDEBUG__ - #ifdef wxUSE_STACKWALKER + #if wxUSE_STACKWALKER #include "wx/stackwalk.h" #ifdef __WXMSW__ #include "wx/msw/debughlp.h" @@ -710,11 +710,12 @@ bool DoShowAssertDialog(const wxString& msg) return false; } +#if wxUSE_STACKWALKER static wxString GetAssertStackTrace() { wxString stackTrace; -#ifdef __WXMSW__ +#if wxUSE_DBGHELP // check that we can get the stack trace before trying to do it if ( !wxDbgHelpDLL::Init() ) return stackTrace; @@ -775,6 +776,7 @@ static wxString GetAssertStackTrace() return stackTrace; } +#endif // wxUSE_STACKWALKER // show the assert modal dialog static