X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e1eac149fc18f51d5a25ac00d957ccaad87b3fa..0685aa9eb65aae0c930ef2a001002ac217cf5ce1:/include/wx/private/selectdispatcher.h diff --git a/include/wx/private/selectdispatcher.h b/include/wx/private/selectdispatcher.h index eea139f37c..9ee71d4f9f 100644 --- a/include/wx/private/selectdispatcher.h +++ b/include/wx/private/selectdispatcher.h @@ -15,7 +15,13 @@ #if wxUSE_SELECT_DISPATCHER -#include +#ifdef __WATCOMC__ + #include + #include + #include +#else + #include +#endif #include "wx/private/fdiodispatcher.h" @@ -76,8 +82,8 @@ private: class WXDLLIMPEXP_BASE wxSelectDispatcher : public wxMappedFDIODispatcher { public: - // creates an instance of this class, the caller takes ownership of it - static wxSelectDispatcher *Create(); + // 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); @@ -85,10 +91,6 @@ public: virtual bool UnregisterFD(int fd); virtual void Dispatch(int timeout = TIMEOUT_INFINITE); -protected: - // ctor is not public, use Create() - wxSelectDispatcher(); - private: // common part of RegisterFD() and ModifyFD() bool DoUpdateFDAndHandler(int fd, wxFDIOHandler *handler, int flags);