fixed include problem on win32
authorkramm <kramm>
Tue, 22 Apr 2008 09:30:57 +0000 (09:30 +0000)
committerkramm <kramm>
Tue, 22 Apr 2008 09:30:57 +0000 (09:30 +0000)
src/parser.lex

index 297bab2..291fc9c 100644 (file)
@@ -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] == '"') {