X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90fc4a0ccb34cf2379882ff255efef790ae10e0d..9ec0e7da983d3c4de9c7007142a72864214514ac:/src/common/http.cpp diff --git a/src/common/http.cpp b/src/common/http.cpp index d65d37f9cb..bea35a2335 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -24,7 +24,12 @@ #include #include + +#ifndef WX_PRECOMP #include "wx/string.h" +#include "wx/app.h" +#endif + #include "wx/tokenzr.h" #include "wx/socket.h" #include "wx/protocol/protocol.h" @@ -234,9 +239,8 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req) SaveState(); // we may use non blocking sockets only if we can dispatch events from them - SetFlags( wxIsMainThread() && (wxTheApp && wxTheApp->IsMainLoopRunning()) - ? wxSOCKET_NONE - : wxSOCKET_BLOCK ); + SetFlags( wxIsMainThread() && wxApp::IsMainLoopRunning() ? wxSOCKET_NONE + : wxSOCKET_BLOCK ); Notify(false); wxString buf;