mirror of
https://github.com/reactos/ninja.git
synced 2025-02-21 12:10:28 +00:00
no need to Decanonicalize on non-Windows
This commit is contained in:
parent
aece8b098c
commit
b6e6564a60
@ -330,6 +330,7 @@ bool Edge::use_console() const {
|
|||||||
|
|
||||||
string Node::PathDecanonicalized() const {
|
string Node::PathDecanonicalized() const {
|
||||||
string result = path_;
|
string result = path_;
|
||||||
|
#ifdef _WIN32
|
||||||
unsigned int mask = 1;
|
unsigned int mask = 1;
|
||||||
for (char* c = &result[0]; (c = strchr(c, '/')) != NULL;) {
|
for (char* c = &result[0]; (c = strchr(c, '/')) != NULL;) {
|
||||||
if (slash_bits_ & mask)
|
if (slash_bits_ & mask)
|
||||||
@ -337,6 +338,7 @@ string Node::PathDecanonicalized() const {
|
|||||||
c++;
|
c++;
|
||||||
mask <<= 1;
|
mask <<= 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user