X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cffee23b4fb7e2843d39318d2e20758a105b26bf..c84c52de6f534df50dc6348b839c98029fa3f8ee:/include/wx/filefn.h diff --git a/include/wx/filefn.h b/include/wx/filefn.h index b9c92f21f0..3127f1c51e 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -23,7 +23,11 @@ // ---------------------------------------------------------------------------- // define off_t +#ifndef __WXMAC__ #include +#else +typedef long off_t; +#endif #ifdef _MSC_VER #define off_t _off_t @@ -33,6 +37,10 @@ typedef long off_t; #endif +#if defined(__SC__) +typedef long off_t; +#endif + const off_t wxInvalidOffset = (off_t)-1; typedef enum { @@ -77,6 +85,11 @@ WXDLLEXPORT void wxDos2UnixFilename(char *s); WXDLLEXPORT void wxUnix2DosFilename(char *s); #define Unix2DosFilename wxUnix2DosFilename +#ifdef __WXMAC__ + WXDLLEXPORT void wxMacPathToFSSpec( const char *path , FSSpec *spec ) ; + WXDLLEXPORT void wxMac2UnixFilename(char *s); + WXDLLEXPORT void wxUnix2MacFilename(char *s); +#endif // Strip the extension, in situ WXDLLEXPORT void wxStripExtension(char *buffer); WXDLLEXPORT void wxStripExtension(wxString& buffer); @@ -90,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 = "", + const wxString& user = ""); // Destructive removal of /./ and /../ stuff WXDLLEXPORT char* wxRealPath(char *path); @@ -196,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