diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2012-01-10 21:08:55 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:31:44 +0300 |
commit | f746c33e6ccda9f34fea8946919418d1acb588f5 (patch) | |
tree | e99b06af9d001f0acc689c1577136a21e573af81 /coding/zip_reader.hpp | |
parent | eeea5111566535c13d16efadf2ef5c8658cc7639 (diff) |
[win] Fixed ZipReader test
Diffstat (limited to 'coding/zip_reader.hpp')
-rw-r--r-- | coding/zip_reader.hpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/coding/zip_reader.hpp b/coding/zip_reader.hpp index 129ae14234..c1df9c2551 100644 --- a/coding/zip_reader.hpp +++ b/coding/zip_reader.hpp @@ -1,13 +1,18 @@ #pragma once -#include "mmap_reader.hpp" +#include "../std/target_os.hpp" +#ifdef OMIM_OS_WINDOWS + #include "file_reader.hpp" + typedef FileReader BaseZipFileReaderType; +#else + #include "mmap_reader.hpp" + typedef MmapReader BaseZipFileReaderType; +#endif #include "../base/exception.hpp" -class ZipFileReader : public MmapReader +class ZipFileReader : public BaseZipFileReaderType { - typedef MmapReader base_type; - public: DECLARE_EXCEPTION(OpenZipException, OpenException); DECLARE_EXCEPTION(LocateZipException, OpenException); |