diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 57907ce9e2..4c9988de6e 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -57,6 +57,12 @@ #include #endif +#ifdef __MWERKS__ + #include + #include + #include +#endif + // ---------------------------------------------------------------------------- // private classes // ---------------------------------------------------------------------------- @@ -1017,7 +1023,20 @@ bool wxFileName::GetTimes(wxDateTime *dtAccess, wxDateTime *dtMod, wxDateTime *dtChange) const { -#if defined(__UNIX_LIKE__) +#if defined(__UNIX_LIKE__) + wxStructStat stBuf; + if ( wxStat(GetFullPath(), &stBuf) == 0 ) + { + if ( dtAccess ) + dtAccess->Set(stBuf.st_atime); + if ( dtMod ) + dtMod->Set(stBuf.st_mtime); + if ( dtChange ) + dtChange->Set(stBuf.st_ctime); + + return TRUE; + } +#elif defined(__WXMAC__) wxStructStat stBuf; if ( wxStat(GetFullPath(), &stBuf) == 0 ) {