X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4bded47deaa59bdeb0b704711090eb85ae7807ea..4aa1406671c5d6abded83e3713b423ac4d40b7c9:/src/common/dircmn.cpp diff --git a/src/common/dircmn.cpp b/src/common/dircmn.cpp index ac7b30fb30..8b5b453db0 100644 --- a/src/common/dircmn.cpp +++ b/src/common/dircmn.cpp @@ -55,16 +55,16 @@ wxDirTraverser::OnOpenError(const wxString& WXUNUSED(dirname)) // dumb generic implementation -bool wxDir::HasFiles(const wxString& spec) +bool wxDir::HasFiles(const wxString& spec) const { wxString s; return GetFirst(&s, spec, wxDIR_FILES | wxDIR_HIDDEN); } // we have a (much) faster version for Unix -#if (defined(__CYGWIN__) && defined(__WINDOWS__)) || !defined(__UNIX_LIKE__) || defined(__WXMAC__) || defined(__EMX__) || defined(__WINE__) +#if (defined(__CYGWIN__) && defined(__WINDOWS__)) || !defined(__UNIX_LIKE__) || defined(__EMX__) || defined(__WINE__) -bool wxDir::HasSubDirs(const wxString& spec) +bool wxDir::HasSubDirs(const wxString& spec) const { wxString s; return GetFirst(&s, spec, wxDIR_DIRS | wxDIR_HIDDEN); @@ -291,6 +291,8 @@ wxString wxDir::FindFirst(const wxString& dirname, // wxDir::GetTotalSize() // ---------------------------------------------------------------------------- +#if wxUSE_LONGLONG + class wxDirTraverserSumSize : public wxDirTraverser { public: @@ -355,3 +357,4 @@ wxULongLong wxDir::GetTotalSize(const wxString &dirname, wxArrayString *filesSki return traverser.GetTotalSize(); } +#endif // wxUSE_LONGLONG