]> git.saurik.com Git - wxWidgets.git/commitdiff
allow building with wxUSE_THREADS==0
authorPaul Cornett <paulcor@bullseye.com>
Fri, 27 Oct 2006 04:42:09 +0000 (04:42 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Fri, 27 Oct 2006 04:42:09 +0000 (04:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/corefoundation/utilsexc_cf.cpp

index c5c4a4081137449eef56563e663f5c94c593bf57..f9f52276607d3816fd6c74e5b1743ee7580f3cc0 100644 (file)
@@ -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