Unified · Split
| @@ -581,7 +581,7 @@ static void error1(TCCState *s1, int is_warning, const char *fmt, va_list ap) · 580 unmodified lines | ||
| 581 | 581 | strcat_printf(buf, sizeof(buf), "In file included from %s:%d:\n", |
| 582 | 582 | (*pf)->filename, (*pf)->line_num); |
| 583 | 583 | if (line_num > 0) { |
| 584 | − if(tok == TOK_LINEFEED) | |
| 584 | + if(tok == TOK_LINEFEED || (tok == CH_EOF && line_num > 1)) | |
| 585 | 585 | line_num--; |
| 586 | 586 | strcat_printf(buf, sizeof(buf), "%s:%d: ", |
| 587 | 587 | f->filename, line_num); |