no need to Decanonicalize on non-Windows
authorScott Graham <scottmg@chromium.org>
Tue, 11 Nov 2014 00:35:31 +0000 (16:35 -0800)
committerScott Graham <scottmg@chromium.org>
Tue, 11 Nov 2014 00:35:31 +0000 (16:35 -0800)
src/graph.cc

index 930c626..223661c 100644 (file)
@@ -330,6 +330,7 @@ bool Edge::use_console() const {
 
 string Node::PathDecanonicalized() const {
   string result = path_;
+#ifdef _WIN32
   unsigned int mask = 1;
   for (char* c = &result[0]; (c = strchr(c, '/')) != NULL;) {
     if (slash_bits_ & mask)
@@ -337,6 +338,7 @@ string Node::PathDecanonicalized() const {
     c++;
     mask <<= 1;
   }
+#endif
   return result;
 }