X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..4b7f2165565bb33b149baf1272e28f9a61d579d3:/src/common/filefn.cpp diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index e5b536b0a6..422cb94d68 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -943,9 +943,9 @@ wxDos2UnixFilename (char *s) void #if defined(__WXMSW__) || defined(__WXPM__) -wxUnix2DosFilename (char *s) +wxUnix2DosFilename (wxChar *s) #else -wxUnix2DosFilename (char *WXUNUSED(s) ) +wxUnix2DosFilename (wxChar *WXUNUSED(s) ) #endif { // Yes, I really mean this to happen under DOS only! JACS @@ -1811,6 +1811,17 @@ void WXDLLEXPORT wxSplitPath(const wxChar *pszFileName, } } + + +time_t WXDLLEXPORT wxFileModificationTime(const wxString& filename) +{ + struct stat buf; + + stat(filename.fn_str(), &buf); + return buf.st_mtime; +} + + //------------------------------------------------------------------------ // wild character routines //------------------------------------------------------------------------