X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17dff81c7141e142765b168ab225e5c61475669f..5fb9fcfc01e19f91f42993d2c3fa2724531df856:/include/wx/filefn.h?ds=sidebyside diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 3ce7a54ac2..3c78364288 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -37,6 +37,10 @@ typedef long off_t; typedef long off_t; #endif +#if defined(__SC__) +typedef long off_t; +#endif + const off_t wxInvalidOffset = (off_t)-1; typedef enum { @@ -99,8 +103,9 @@ WXDLLEXPORT char* wxExpandPath(char *dest, const char *path); // Contract w.r.t environment ( -> ${OPENWINHOME}/lib) // and make (if under the home tree) relative to home // [caller must copy-- volatile] -WXDLLEXPORT char* wxContractPath (const wxString& filename, - const wxString& envname = wxEmptyString, const wxString& user = wxEmptyString); +WXDLLEXPORT char* wxContractPath(const wxString& filename, + const wxString& envname = wxEmptyString, + const wxString& user = wxEmptyString); // Destructive removal of /./ and /../ stuff WXDLLEXPORT char* wxRealPath(char *path); @@ -205,7 +210,11 @@ class WXDLLEXPORT wxPathList : public wxStringList { public: void AddEnvList(const wxString& envVariable); // Adds all paths in environment variable + void Add(const wxString& path); + // Avoid compiler warning + wxNode *Add(const char *s) { return wxStringList::Add(s); } + wxString FindValidPath(const wxString& filename); // Find the first full path // for which the file exists wxString FindAbsoluteValidPath(const wxString& filename); // Find the first full path