no need to Decanonicalize on non-Windows

This commit is contained in:
Scott Graham 2014-11-10 16:35:31 -08:00
parent aece8b098c
commit b6e6564a60

View 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;
}