* descriptor.cc: Include <cstdio> and "binary-io.h".

(Descriptors::open): Open the files in binary mode always.
	* script.cc (Lex::get_token): Treat \r as whitespace.
This commit is contained in:
Ian Lance Taylor
2009-10-10 04:56:43 +00:00
parent ec2d9b2927
commit f3048a1d47
3 changed files with 13 additions and 1 deletions

View File

@ -743,7 +743,7 @@ Lex::get_token(const char** pp)
}
// Skip whitespace quickly.
while (*p == ' ' || *p == '\t')
while (*p == ' ' || *p == '\t' || *p == '\r')
++p;
if (*p == '\n')