diff --git a/contrib/utils/wxrc/wxrc.cpp b/contrib/utils/wxrc/wxrc.cpp index f36768d150..79d7540fc3 100644 --- a/contrib/utils/wxrc/wxrc.cpp +++ b/contrib/utils/wxrc/wxrc.cpp @@ -98,6 +98,12 @@ int XmlResApp::OnRun() { wxCMD_LINE_NONE } }; +#if wxUSE_GUI + // VS: I need reasonable output to console from wxCmdLineParser + wxLog::SetTimestamp(NULL); + delete wxLog::SetActiveTarget(new wxLogStderr); +#endif + wxXmlDocument::AddHandler(new wxXmlIOHandlerBinZ); wxCmdLineParser parser(cmdLineDesc, argc, argv); diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index f36768d150..79d7540fc3 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -98,6 +98,12 @@ int XmlResApp::OnRun() { wxCMD_LINE_NONE } }; +#if wxUSE_GUI + // VS: I need reasonable output to console from wxCmdLineParser + wxLog::SetTimestamp(NULL); + delete wxLog::SetActiveTarget(new wxLogStderr); +#endif + wxXmlDocument::AddHandler(new wxXmlIOHandlerBinZ); wxCmdLineParser parser(cmdLineDesc, argc, argv);