From d902b5f24d4c56aa2fc82b34246b0f75766f10f8 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sat, 14 Jun 2014 22:07:04 -0700 Subject: comment --- src/disk_interface.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 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 Cache; Cache cache_; #endif -- cgit v0.12