#endif // __WXMAC__
#ifdef __WXDEBUG__
- #ifdef wxUSE_STACKWALKER
+ #if wxUSE_STACKWALKER
#include "wx/stackwalk.h"
#ifdef __WXMSW__
#include "wx/msw/debughlp.h"
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;
return stackTrace;
}
+#endif // wxUSE_STACKWALKER
// show the assert modal dialog
static