X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f523d7ce03423208d2843ce39f1f0357da5bd987..0bdd807424210ce9b4c14bae5dcd2943fcb1b13a:/src/mac/corefoundation/utilsexc_cf.cpp?ds=sidebyside 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