X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a18887b88e2ba064154ae5998db7b7533f6bb78..7b504551c292ecb4296693983161ac5ad03745f6:/include/wx/evtloop.h diff --git a/include/wx/evtloop.h b/include/wx/evtloop.h index 42b00f2d03..2612ac024c 100644 --- a/include/wx/evtloop.h +++ b/include/wx/evtloop.h @@ -12,10 +12,6 @@ #ifndef _WX_EVTLOOP_H_ #define _WX_EVTLOOP_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "evtloop.h" -#endif - #include "wx/utils.h" class WXDLLEXPORT wxEventLoop; @@ -72,7 +68,9 @@ protected: // can sometimes be very useful (e.g. under MSW this is necessary for // integration with MFC) but currently this is done for MSW only, other ports // should follow a.s.a.p. -#ifdef __WXMSW__ +#if defined(__WXPALMOS__) + #include "wx/palmos/evtloop.h" +#elif defined(__WXMSW__) #include "wx/msw/evtloop.h" #else @@ -88,7 +86,7 @@ public: virtual void Exit(int rc = 0); virtual bool Pending() const; virtual bool Dispatch(); - virtual bool IsRunning() const { return m_impl != NULL; } + virtual bool IsRunning() const { return GetActive() == this; } protected: // the pointer to the port specific implementation class