summaryrefslogtreecommitdiffstats
path: root/src/disk_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/disk_interface.h')
-rw-r--r--src/disk_interface.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/disk_interface.h b/src/disk_interface.h
index bffb679..bb40dc9 100644
--- a/src/disk_interface.h
+++ b/src/disk_interface.h
@@ -56,7 +56,11 @@ struct DiskInterface {
/// Implementation of DiskInterface that actually hits the disk.
struct RealDiskInterface : public DiskInterface {
- RealDiskInterface() : quiet_(false), use_cache_(false) {}
+ RealDiskInterface() : quiet_(false)
+#ifdef _WIN32
+ , use_cache_(false)
+#endif
+ {}
virtual ~RealDiskInterface() {}
virtual TimeStamp Stat(const string& path);
virtual bool MakeDir(const string& path);
@@ -71,6 +75,8 @@ struct RealDiskInterface : public DiskInterface {
bool use_cache_;
typedef map<string, TimeStamp> DirCache;
+ // TODO: Neither a map nor a hashmap seems ideal here. If the statcache
+ // works out, come up with a better data structure.
typedef map<string, DirCache*> Cache;
Cache cache_;
#endif