#pragma hdrstop
#endif
-#if wxUSE_FS_ZIP
+#if wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_ZIPSTREAM
#ifndef WXPRECOMP
#include "wx/wx.h"
return new wxFSFile(s,
left + wxT("#zip:") + right,
GetMimeTypeFromExt(location),
- GetAnchor(location));
+ GetAnchor(location),
+ wxDateTime(wxFileModificationTime(left)));
}
- else return NULL;
+
+ delete s;
+ return NULL;
}
}
m_ZipFile = left;
- m_Archive = (void*) unzOpen(m_ZipFile.fn_str());
+ m_Archive = (void*) unzOpen(m_ZipFile.mb_str());
m_Pattern = right.AfterLast(wxT('/'));
m_BaseDir = right.BeforeLast(wxT('/'));
-#endif // wxUSE_FS_ZIP
+#endif
+ //wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_ZIPSTREAM