summaryrefslogtreecommitdiffstats
path: root/src/disk_interface.h
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2014-06-15 05:07:04 (GMT)
committerNico Weber <thakis@chromium.org>2014-06-15 21:13:51 (GMT)
commitd902b5f24d4c56aa2fc82b34246b0f75766f10f8 (patch)
treec797f6eec0feb5d4184b753050fddabc646803af /src/disk_interface.h
parentf6f63eb50855ac2ccf37e2f5629f6a9e962d6c5e (diff)
downloadNinja-d902b5f24d4c56aa2fc82b34246b0f75766f10f8.zip
Ninja-d902b5f24d4c56aa2fc82b34246b0f75766f10f8.tar.gz
Ninja-d902b5f24d4c56aa2fc82b34246b0f75766f10f8.tar.bz2
comment
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