]> git.saurik.com Git - wxWidgets.git/commitdiff
build fix for !wxUSE_THREADS
authorPaul Cornett <paulcor@bullseye.com>
Thu, 10 Jan 2008 06:00:22 +0000 (06:00 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 10 Jan 2008 06:00:22 +0000 (06:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/event.cpp

index 46efb4f7e57ce5b9ad2813fdae6f37b7c8b2d22f..4ca845660e2bd86724a8733661b406acc7075c3c 100644 (file)
@@ -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