scripts: fix fixdep.c to let it workable in cygwin
Update retrun character detection in the fixdep.c to let it work in cygwin. Signed-off-by: Macpaul Lin <macpaul@andestech.com> Signed-off-by: Greentime <green.hu@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e06884208a
commit
b2fa0b6219
@ -329,7 +329,7 @@ void parse_dep_file(void *map, size_t len)
|
|||||||
clear_config();
|
clear_config();
|
||||||
|
|
||||||
while (m < end) {
|
while (m < end) {
|
||||||
while (m < end && (*m == ' ' || *m == '\\' || *m == '\n'))
|
while (m < end && (*m == ' ' || *m == '\\' || *m == '\n' || *m == '\r'))
|
||||||
m++;
|
m++;
|
||||||
p = m;
|
p = m;
|
||||||
while (p < end && *p != ' ') p++;
|
while (p < end && *p != ' ') p++;
|
||||||
|
Loading…
Reference in New Issue
Block a user