diff options
-rw-r--r-- | src/graph.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/graph.cc b/src/graph.cc index 930c626..223661c 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -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; } |