X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b46b1d59d6f69ad80dcf5955375578a6504d100a..4f61df823f1c16f7678be5a67f1fa4e29d90c5ff:/src/msw/basemsw.cpp diff --git a/src/msw/basemsw.cpp b/src/msw/basemsw.cpp index 1989549dc1..3ef53a321b 100644 --- a/src/msw/basemsw.cpp +++ b/src/msw/basemsw.cpp @@ -35,6 +35,7 @@ // wxBase.dll, and MSVC 5 will give linker errors #include "wx/recguard.h" +#include "wx/crt.h" #include "wx/msw/private.h" // ============================================================================ @@ -82,18 +83,31 @@ bool wxConsoleAppTraits::DoMessageFromThreadWait() return true; } +#if wxUSE_TIMER + wxTimerImpl *wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer) { return new wxMSWTimerImpl(timer); } -wxEventLoop *wxConsoleAppTraits::CreateEventLoop() +#endif // wxUSE_TIMER + +wxEventLoopBase *wxConsoleAppTraits::CreateEventLoop() { +#if wxUSE_CONSOLE_EVENTLOOP return new wxEventLoop(); +#else // !wxUSE_CONSOLE_EVENTLOOP + return NULL; +#endif // wxUSE_CONSOLE_EVENTLOOP/!wxUSE_CONSOLE_EVENTLOOP } + WXDWORD wxConsoleAppTraits::WaitForThread(WXHANDLE hThread) { return DoSimpleWaitForThread(hThread); } +bool wxConsoleAppTraits::WriteToStderr(const wxString& text) +{ + return wxFprintf(stderr, "%s", text) != -1; +}