#include <unistd.h>
#endif
+#ifdef __MWERKS__
+ #include <stat.h>
+ #include <unistd.h>
+ #include <unix.h>
+#endif
+
// ----------------------------------------------------------------------------
// private classes
// ----------------------------------------------------------------------------
bool wxFileName::IsCaseSensitive( wxPathFormat format )
{
// only DOS and OpenVMS filenames are case-sensitive
- return ( GetFormat(format) != wxPATH_DOS &
- GetFormat(format) != wxPATH_VMS );
+ return GetFormat(format) != wxPATH_DOS && GetFormat(format) != wxPATH_VMS;
}
bool wxFileName::IsRelative( wxPathFormat format )
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 )
{