From: Paul Cornett Date: Fri, 27 Oct 2006 04:42:09 +0000 (+0000) Subject: allow building with wxUSE_THREADS==0 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4fa167e669e4721c1227c992b252ec3d123c0edd allow building with wxUSE_THREADS==0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/corefoundation/utilsexc_cf.cpp b/src/mac/corefoundation/utilsexc_cf.cpp index c5c4a40811..f9f5227660 100644 --- a/src/mac/corefoundation/utilsexc_cf.cpp +++ b/src/mac/corefoundation/utilsexc_cf.cpp @@ -35,6 +35,7 @@ #if USE_POLLING +#if wxUSE_THREADS class wxProcessTerminationEventHandler: public wxEvtHandler { public: @@ -117,6 +118,13 @@ int wxAddProcessCallbackForPid(wxEndProcessData *proc_data, int pid) return 0; } +#else // !wxUSE_THREADS +int wxAddProcessCallbackForPid(wxEndProcessData*, int) +{ + wxLogDebug(wxT("Could not create termination detection thread.")); + return -1; +} +#endif // wxUSE_THREADS/!wxUSE_THREADS #else // !USE_POLLING