git-compat-util.h may define various values that affect the interpretation of system headers. In most places we include cgit.h first, which pulls in git-compat-util.h, but this file does not depend on anything else in CGit, so use git-compat-util.h directly.
Unified · Split
| @@ -6,8 +6,7 @@ · 5 unmodified lines | ||
| 6 | 6 | * (see COPYING for full license text) |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | −#include <ctype.h> | |
| 10 | −#include <stdio.h> | |
| 9 | +#include <git-compat-util.h> | |
| 11 | 10 | #include "configfile.h" |
| 12 | 11 | |
| 13 | 12 | static int next_char(FILE *f) |