// Yield to other apps/messages
extern void WXDLLEXPORT wxWakeUpIdle();
-#if wxUSE_GUI
-
// Post a message to the given eventhandler which will be processed during the
// next event loop iteration
inline void WXDLLEXPORT wxPostEvent(wxEvtHandler *dest, wxEvent& event)
{
wxCHECK_RET( dest, wxT("need an object to post event to in wxPostEvent") );
+#if wxUSE_GUI
dest->AddPendingEvent(event);
-}
-
+#else
+ dest->ProcessEvent(event);
#endif // wxUSE_GUI
+}
// console applications may avoid using DECLARE_APP and IMPLEMENT_APP macros
// and call these functions instead at the program startup and termination
#elif defined(__WXMSW__) && defined(WXUSINGDLL)
// NT defines APIENTRY, 3.x not
#if !defined(WXAPIENTRY)
- #define WXAPIENTRY FAR wxSTDCALL
+ #define WXAPIENTRY WXFAR wxSTDCALL
#endif
#define IMPLEMENT_WXWIN_MAIN \