X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7523de907dd77eedd33431d5ff46478a467faf5f..ea6cbf486a3be57fd10283b3cd65a34e193d3d6c:/include/wx/private/selectdispatcher.h diff --git a/include/wx/private/selectdispatcher.h b/include/wx/private/selectdispatcher.h index d61f0daf77..5eed47c55c 100644 --- a/include/wx/private/selectdispatcher.h +++ b/include/wx/private/selectdispatcher.h @@ -15,7 +15,15 @@ #if wxUSE_SELECT_DISPATCHER -#include +#ifdef __WATCOMC__ + #include + #include + #include + #include + #include +#else + #include +#endif #include "wx/private/fdiodispatcher.h" @@ -76,14 +84,8 @@ private: class WXDLLIMPEXP_BASE wxSelectDispatcher : public wxMappedFDIODispatcher { public: - // returns the unique instance of this class, the pointer shouldn't be - // deleted and is normally never NULL - static wxSelectDispatcher *Get(); - - // if we have any registered handlers, check for any pending events to them - // and dispatch them -- this is used from wxX11 and wxDFB event loops - // implementation - static void DispatchPending(); + // default ctor + wxSelectDispatcher() { m_maxFD = -1; } // implement pure virtual methods of the base class virtual bool RegisterFD(int fd, wxFDIOHandler *handler, int flags = wxFDIO_ALL); @@ -91,9 +93,6 @@ public: virtual bool UnregisterFD(int fd); virtual void Dispatch(int timeout = TIMEOUT_INFINITE); -protected: - wxSelectDispatcher(); - private: // common part of RegisterFD() and ModifyFD() bool DoUpdateFDAndHandler(int fd, wxFDIOHandler *handler, int flags);