From: Paul Cornett Date: Thu, 10 Jan 2008 06:00:22 +0000 (+0000) Subject: build fix for !wxUSE_THREADS X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/364ab6cc8aa3bc64b39f4b1c15ced0d11bec0130?ds=inline build fix for !wxUSE_THREADS git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/event.cpp b/src/common/event.cpp index 46efb4f7e5..4ca845660e 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -1116,8 +1116,10 @@ wxEvtHandler::~wxEvtHandler() // Remove us from wxPendingEvents if necessary. if ( wxPendingEvents ) { +#if wxUSE_THREADS if(wxPendingEventsLocker) wxENTER_CRIT_SECT(*wxPendingEventsLocker); +#endif if ( wxPendingEvents->DeleteObject(this) ) { @@ -1127,8 +1129,10 @@ wxEvtHandler::~wxEvtHandler() } //else: we weren't in this list at all, it's ok +#if wxUSE_THREADS if(wxPendingEventsLocker) wxLEAVE_CRIT_SECT(*wxPendingEventsLocker); +#endif } // we only delete object data, not untyped