#if defined(__WXMSW__)
#include "wx/msw/wrapwin.h" // includes windows.h for MessageBox()
- #include "wx/msw/debughlp.h" // includes windows.h for MessageBox()
#endif
#if wxUSE_FONTMAP
#endif // __WXMAC__
#ifdef __WXDEBUG__
- #ifdef wxUSE_STACKWALKER
+ #if wxUSE_STACKWALKER
#include "wx/stackwalk.h"
#ifdef __WXMSW__
#include "wx/msw/debughlp.h"
bool wxAppConsole::Initialize(int& argc, wxChar **argv)
{
-#if wxUSE_LOG
- // If some code logged something before wxApp instance was created,
- // wxLogStderr was set as the target. Undo it here by destroying the
- // current target. It will be re-created next time logging is needed, but
- // this time wxAppTraits will be used:
- delete wxLog::SetActiveTarget(NULL);
-#endif // wxUSE_LOG
-
// remember the command line arguments
this->argc = argc;
this->argv = argv;