From 1411f7eb1a86d2ec4c89340262be0405b77091d0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 19 Jul 2004 08:47:08 +0000 Subject: [PATCH] compilation fix for wxUSE_THREADS == 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/http.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/http.cpp b/src/common/http.cpp index 21381bd83a..e444c296f8 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -232,7 +232,11 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req) SetHeader(wxT("User-Agent"), wxT("wxWidgets 2.x")); SaveState(); +#if wxUSE_THREADS SetFlags( wxThread::IsMain() ? wxSOCKET_NONE : wxSOCKET_BLOCK ); +#else + SetFlags( wxSOCKET_NONE ); +#endif Notify(FALSE); wxString buf; -- 2.45.2