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:
Macpaul Lin 2010-12-17 11:44:32 +08:00 committed by Denys Vlasenko
parent e06884208a
commit b2fa0b6219

View File

@ -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++;