]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
Bring through upstream version tagged PKGCONF_0_20.
[wxWidgets.git] / src / common / filefn.cpp
index 451ec6d421226055fc80dbdb9c258aab6c0829b5..3707d0a32713681741d26356e45f77263b1413dc 100644 (file)
@@ -1625,6 +1625,8 @@ void WXDLLEXPORT wxSplitPath(const wxChar *pszFileName,
     wxFileName::SplitPath(pszFileName, pstrPath, pstrName, pstrExt);
 }
 
+#if wxUSE_DATETIME
+
 time_t WXDLLEXPORT wxFileModificationTime(const wxString& filename)
 {
     wxDateTime mtime;
@@ -1634,6 +1636,8 @@ time_t WXDLLEXPORT wxFileModificationTime(const wxString& filename)
     return mtime.GetTicks();
 }
 
+#endif // wxUSE_DATETIME
+
 
 // Parses the filterStr, returning the number of filters.
 // Returns 0 if none or if there's a problem.