diff options
author | Scott Graham <scottmg@chromium.org> | 2014-11-11 00:35:31 (GMT) |
---|---|---|
committer | Scott Graham <scottmg@chromium.org> | 2014-11-11 00:35:31 (GMT) |
commit | b6e6564a603b184ebb077ccb7b7a89976ef97a5b (patch) | |
tree | 5086c894bb896fa078cd00ed751bf82341614234 | |
parent | aece8b098cb2a5d722edf0221dfd0744a818a8d1 (diff) | |
download | Ninja-b6e6564a603b184ebb077ccb7b7a89976ef97a5b.zip Ninja-b6e6564a603b184ebb077ccb7b7a89976ef97a5b.tar.gz Ninja-b6e6564a603b184ebb077ccb7b7a89976ef97a5b.tar.bz2 |
no need to Decanonicalize on non-Windows
-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; } |