X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b7352027902bebecd06e2a124492fc0ee27f4e2..89894079c04bba0ab2fd9efcb421516fc90545cb:/src/common/filefn.cpp?ds=sidebyside diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index b2cf5e2950..422cb94d68 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -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 //------------------------------------------------------------------------