X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f2bcf34371665165e8232c7fdf3776cfff11892..e7e91e03584a8e2582e7efd32a06f9f79ef65a52:/src/common/ftp.cpp diff --git a/src/common/ftp.cpp b/src/common/ftp.cpp index 1579342ca5..f3126b2f33 100644 --- a/src/common/ftp.cpp +++ b/src/common/ftp.cpp @@ -32,7 +32,7 @@ #pragma hdrstop #endif -#if wxUSE_SOCKETS && wxUSE_STREAMS +#if wxUSE_PROTOCOL_FTP #ifndef WX_PRECOMP #include @@ -672,7 +672,7 @@ wxOutputStream *wxFTP::GetOutputStream(const wxString& path) wxString tmp_str = wxT("STOR ") + path; if ( !CheckCommand(tmp_str, '1') ) - return FALSE; + return NULL; m_streaming = TRUE; @@ -844,7 +844,7 @@ int wxFTP::GetFileSize(const wxString& fileName) { if ( wxSscanf(fileList[i].c_str(), - _("%*s %*s %*s %*s %i %*s %*s %*s %*s"), + _T("%*s %*s %*s %*s %i %*s %*s %*s %*s"), &filesize) == 9 ) { // We've gotten a good response @@ -884,7 +884,7 @@ int wxFTP::GetFileSize(const wxString& fileName) } -#ifdef WXWIN_COMPATIBILITY_2 +#if WXWIN_COMPATIBILITY_2 // deprecated wxList *wxFTP::GetList(const wxString& wildcard, bool details) { @@ -925,5 +925,5 @@ wxList *wxFTP::GetList(const wxString& wildcard, bool details) } #endif // WXWIN_COMPATIBILITY_2 -#endif - // wxUSE_SOCKETS +#endif // wxUSE_PROTOCOL_FTP +