From: kramm Date: Tue, 22 Apr 2008 09:30:57 +0000 (+0000) Subject: fixed include problem on win32 X-Git-Tag: buttons-working~234 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=8c2ec81f5bf33f6cda0ba5fdfa6a289d14e49315 fixed include problem on win32 --- diff --git a/src/parser.lex b/src/parser.lex index 297bab2..291fc9c 100644 --- a/src/parser.lex +++ b/src/parser.lex @@ -168,7 +168,7 @@ void handleInclude(char*text, int len) while(len >=1 && (text[0] == ' ' || text[0] == '\t')) { text++;len--; } - while(len >= 1 && (text[len-1] == ' ' || text[len-1] == '\n')) { + while(len >= 1 && (text[len-1] == ' ' || text[len-1] == "\r" || text[len-1] == '\n')) { len--; } if(len >= 2 && text[0] == '"' && text[len-1] == '"') {