///////////////////////////////////////////////////////////////////////////////
-// Name: mac/carbon/evtloop.cpp
+// Name: src/mac/carbon/evtloop.cpp
// Purpose: implementation of wxEventLoop for wxMac
// Author: Vadim Zeitlin
// Modified by:
#include "wx/evtloop.h"
-#include <Carbon/Carbon.h>
+#ifndef WX_PRECOMP
+ #include "wx/app.h"
+#endif // WX_PRECOMP
+#ifdef __DARWIN__
+ #include <Carbon/Carbon.h>
+#else
+ #include <Carbon.h>
+#endif
// ============================================================================
// wxEventLoop implementation
// ============================================================================
#if wxMAC_USE_RUN_APP_EVENT_LOOP
-int wxEventLoop::Run()
+int wxGUIEventLoop::Run()
{
wxEventLoopActivator activate(this);
return m_exitcode;
}
-void wxEventLoop::Exit(int rc)
+void wxGUIEventLoop::Exit(int rc)
{
m_exitcode = rc;
// functions only used by wxEventLoopManual-based implementation
// ----------------------------------------------------------------------------
-void wxEventLoop::WakeUp()
+void wxGUIEventLoop::WakeUp()
{
extern void wxMacWakeUp();
// low level functions used in both cases
// ----------------------------------------------------------------------------
-bool wxEventLoop::Pending() const
+bool wxGUIEventLoop::Pending() const
{
EventRef theEvent;
) == noErr;
}
-bool wxEventLoop::Dispatch()
+bool wxGUIEventLoop::Dispatch()
{
// TODO: we probably should do the dispatching directly from here but for
// now it's easier to forward to wxApp which has all the code to do
wxTheApp->MacDoOneEvent();
return true;
}
-