]> git.saurik.com Git - wxWidgets.git/commitdiff
build fixes for wxUSE_THREADS==0
authorPaul Cornett <paulcor@bullseye.com>
Wed, 18 Feb 2009 04:06:46 +0000 (04:06 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Wed, 18 Feb 2009 04:06:46 +0000 (04:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/window.h
src/common/sckaddr.cpp

index cc879cfd98a70b09f402a38e91e4b30ff2063dd9..214833cd5df0997d63f4a9692b32df06a8d06b93 100644 (file)
@@ -832,7 +832,9 @@ protected:
     //       The same holds for all other wxEvtHandler functions.
 
     using wxEvtHandler::ProcessEvent;
+#if wxUSE_THREADS
     using wxEvtHandler::ProcessThreadEvent;
+#endif
     using wxEvtHandler::SafelyProcessEvent;
     using wxEvtHandler::ProcessPendingEvents;
     using wxEvtHandler::AddPendingEvent;
index 9e2b8682e748692f8b2704605be2bba5e428d975..e70932497f9a7f117ec9c5b3791dcedc9a377a0a 100644 (file)
@@ -148,7 +148,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxUNIXaddress, wxSockAddress)
     typedef char wxGetservBuf[1024];
 #endif
 
-#ifdef wxHAS_MT_SAFE_GETBY_FUNCS
+#if defined(wxHAS_MT_SAFE_GETBY_FUNCS) || !wxUSE_THREADS
     #define wxLOCK_GETBY_MUTEX(name)
 #else // may need mutexes to protect getxxxbyxxx() calls
     #if defined(HAVE_GETHOSTBYNAME) || \