#endif
#include "wx/msgout.h"
+#include "wx/apptrait.h"
#include "wx/log.h"
#include <stdarg.h>
#include <stdio.h>
+#ifdef __WXMSW__
+ #include "wx/msw/private.h"
+#endif
+
// ===========================================================================
// implementation
// ===========================================================================
-#ifdef __WXBASE__
+#if wxUSE_BASE
// ----------------------------------------------------------------------------
// wxMessageOutput
{
if ( !ms_msgOut && wxTheApp )
{
- ms_msgOut = wxTheApp->CreateMessageOutput();
+ ms_msgOut = wxTheApp->GetTraits()->CreateMessageOutput();
}
return ms_msgOut;
::wxLogMessage(wxT("%s"), out.c_str());
}
-#endif // __WXBASE__
+#endif // wxUSE_BASE
// ----------------------------------------------------------------------------
// wxMessageOutputMessageBox