X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e1eac149fc18f51d5a25ac00d957ccaad87b3fa..b97d1013cf34ee9e844fed490cca849c41bd4f8f:/src/common/fdiodispatcher.cpp diff --git a/src/common/fdiodispatcher.cpp b/src/common/fdiodispatcher.cpp index f6a131dc01..83573829c1 100644 --- a/src/common/fdiodispatcher.cpp +++ b/src/common/fdiodispatcher.cpp @@ -49,13 +49,13 @@ wxFDIODispatcher *wxFDIODispatcher::Get() { if ( !gs_dispatcher ) { -#ifdef wxUSE_EPOLL_DISPATCHER +#if wxUSE_EPOLL_DISPATCHER gs_dispatcher = wxEpollDispatcher::Create(); if ( !gs_dispatcher ) #endif // wxUSE_EPOLL_DISPATCHER #if wxUSE_SELECT_DISPATCHER - gs_dispatcher = wxSelectDispatcher::Create(); -#endif // wxUSE_WCHAR_T + gs_dispatcher = new wxSelectDispatcher(); +#endif // wxUSE_SELECT_DISPATCHER } wxASSERT_MSG( gs_dispatcher, _T("failed to create any IO dispatchers") );