allow building with wxUSE_THREADS==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user