compilation fix for wxUSE_THREADS == 0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-07-19 08:47:08 +00:00
parent 6601362a1d
commit 1411f7eb1a

View File

@ -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;