X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5dbe15d0bacde245539f54c4d97af6b4696f01f..9c97f8ea883afa5db14c37bea63f6d4c327b4596:/include/wx/filename.h diff --git a/include/wx/filename.h b/include/wx/filename.h index dd44465684..023366e020 100644 --- a/include/wx/filename.h +++ b/include/wx/filename.h @@ -27,6 +27,7 @@ #include "wx/filefn.h" #include "wx/datetime.h" #include "wx/intl.h" +#include "wx/longlong.h" #if wxUSE_FILE class WXDLLIMPEXP_FWD_BASE wxFile; @@ -84,8 +85,10 @@ enum wxPATH_MKDIR_FULL = 0x0001 // create directories recursively }; +#if wxUSE_LONGLONG // error code of wxFileName::GetSize() -extern wxULongLong wxInvalidSize; +extern WXDLLIMPEXP_DATA_BASE(const wxULongLong) wxInvalidSize; +#endif // wxUSE_LONGLONG @@ -483,6 +486,7 @@ public: // Filesize +#if wxUSE_LONGLONG // returns the size of the given filename wxULongLong GetSize() const; static wxULongLong GetSize(const wxString &file); @@ -493,6 +497,7 @@ public: static wxString GetHumanReadableSize(const wxULongLong &sz, const wxString &nullsize = wxGetTranslation(_T("Not available")), int precision = 1); +#endif // wxUSE_LONGLONG // deprecated methods, don't use any more