X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2f60e03ccc39fc15ad9673dad7b27b86c42996f..236a9de39afa090fdee3cf91cb5364ceca69e3f8:/src/common/filesys.cpp diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index ebefb2ef97..ea9f907982 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -17,12 +17,8 @@ #pragma hdrstop #endif -#if !wxUSE_SOCKETS - #undef wxUSE_FS_INET - #define wxUSE_FS_INET 0 -#endif -#if (wxUSE_HTML || wxUSE_FS_INET || wxUSE_FS_ZIP) && wxUSE_STREAMS +#if wxUSE_FILESYSTEM #include "wx/wfstream.h" #include "wx/module.h" @@ -230,7 +226,7 @@ static wxString MakeCorrectPath(const wxString& path) cnt = p.Length(); for (i = 0; i < cnt; i++) - if (p.GetChar(i) == wxT('\\')); p.GetWritableChar(i) = wxT('/'); // wanna be windows-safe + if (p.GetChar(i) == wxT('\\')) p.GetWritableChar(i) = wxT('/'); // Want to be windows-safe if (p.Left(2) == wxT("./")) { p = p.Mid(2); cnt -= 2; } @@ -382,7 +378,7 @@ wxString wxFileSystem::FindFirst(const wxString& spec, int flags) m_FindFileHandler = NULL; for (int i = spec2.Length()-1; i >= 0; i--) - if (spec2[(unsigned int) i] == wxT('\\')) spec2.GetWritableChar(i) = wxT('/'); // wanna be windows-safe + if (spec2[(unsigned int) i] == wxT('\\')) spec2.GetWritableChar(i) = wxT('/'); // Want to be windows-safe node = m_Handlers.GetFirst(); while (node) @@ -451,7 +447,7 @@ class wxFileSystemModule : public wxModule IMPLEMENT_DYNAMIC_CLASS(wxFileSystemModule, wxModule) #endif - // (wxUSE_FS_INET || wxUSE_FS_ZIP) && wxUSE_STREAMS + // wxUSE_FILESYSTEM