]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
1. fixed (to test) the bug with bitmaps without masks in wxImageList
[wxWidgets.git] / src / common / filefn.cpp
index e5b536b0a6d4c1e0c428350f25dfa0fbbb65770c..422cb94d68df65db5628e016a9a7a457c62dd9f0 100644 (file)
@@ -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
 //------------------------------------------------------------------------