all repos — cgit @ f2e8ca806d43acbfd9bef53f1a3ee5ce95ff32e7

a hyperfast web frontend for git written in c

configfile.c: don't include system headers directly

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.

Signed-off-by: John Keeping <john@keeping.me.uk>
John Keeping john@keeping.me.uk
Thu, 13 Aug 2015 12:14:16 +0100
commit

f2e8ca806d43acbfd9bef53f1a3ee5ce95ff32e7

parent

157f544ac2149a985b0f62e9381a759c0ae252ec

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M configfile.cconfigfile.c

@@ -6,8 +6,7 @@ * Licensed under GNU General Public License v2

* (see COPYING for full license text) */ -#include <ctype.h> -#include <stdio.h> +#include <git-compat-util.h> #include "configfile.h" static int next_char(FILE *f)