From: Mika Lindqvist Date: Mon, 18 Apr 2016 15:27:32 +0000 (+0300) Subject: Update -DGEN_TREES_H output to match trees.h X-Git-Tag: 1.9.9-b1~756 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5727bfca8aece5b6cb7b6f02f41ce16cd5b4c5ed;p=thirdparty%2Fzlib-ng.git Update -DGEN_TREES_H output to match trees.h --- diff --git a/trees.c b/trees.c index b55ccdf68..40b0428c7 100644 --- a/trees.c +++ b/trees.c @@ -255,6 +255,9 @@ void gen_trees_header() { int i; Assert(header != NULL, "Can't open trees.h"); + fprintf(header, "#ifndef TREES_H_\n"); + fprintf(header, "#define TREES_H_\n\n"); + fprintf(header, "/* header created automatically with -DGEN_TREES_H */\n\n"); fprintf(header, "ZLIB_INTERNAL const ct_data static_ltree[L_CODES+2] = {\n"); @@ -287,6 +290,7 @@ void gen_trees_header() { fprintf(header, "%5d%s", base_dist[i], SEPARATOR(i, D_CODES-1, 10)); } + fprintf(header, "#endif /* TREES_H_ */\n"); fclose(header); } #endif /* GEN_TREES_H */