Now possible to compile with wxURL disabled

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-10-27 17:33:32 +00:00
parent cf49c9551b
commit 34e0d9f874
4 changed files with 19 additions and 2 deletions

View File

@@ -760,6 +760,9 @@ bool wxFTP::Abort()
wxInputStream *wxFTP::GetInputStream(const wxString& path)
{
#if !wxUSE_URL
return NULL;
#else
if ( ( m_currentTransfermode == NONE ) && !SetTransferMode(BINARY) )
return NULL;
@@ -786,6 +789,7 @@ wxInputStream *wxFTP::GetInputStream(const wxString& path)
wxInputFTPStream *in_stream = new wxInputFTPStream(this, sock);
return in_stream;
#endif
}
wxOutputStream *wxFTP::GetOutputStream(const wxString& path)