summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2014-06-15 22:26:37 (GMT)
committerNico Weber <thakis@chromium.org>2014-06-15 22:26:37 (GMT)
commitb503fdc5367de37c8db42442de511c82a2d35399 (patch)
tree1240473a4af9a7d5889446d5a197fe688f39cf16
parent13cdf9b1812397a969288c755c99926b4011a955 (diff)
downloadNinja-b503fdc5367de37c8db42442de511c82a2d35399.zip
Ninja-b503fdc5367de37c8db42442de511c82a2d35399.tar.gz
Ninja-b503fdc5367de37c8db42442de511c82a2d35399.tar.bz2
add missing _WIN32 checks
-rw-r--r--src/disk_interface.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/disk_interface.cc b/src/disk_interface.cc
index c4531e6..6437761 100644
--- a/src/disk_interface.cc
+++ b/src/disk_interface.cc
@@ -55,6 +55,7 @@ int MakeDir(const string& path) {
#endif
}
+#ifdef _WIN32
TimeStamp TimeStampFromFileTime(const FILETIME& filetime) {
// FILETIME is in 100-nanosecond increments since the Windows epoch.
// We don't much care about epoch correctness but we do want the
@@ -109,6 +110,7 @@ bool StatAllFilesInDir(const string& dir, map<string, TimeStamp>* stamps,
FindClose(hFind);
return true;
}
+#endif // _WIN32
} // namespace