diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/cmapdump.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/cmapdump.c b/scripts/cmapdump.c index 4da2e329..eb84cb4c 100644 --- a/scripts/cmapdump.c +++ b/scripts/cmapdump.c @@ -75,7 +75,8 @@ main(int argc, char **argv) return 1; } - fprintf(fo, "/* This is an automatically generated file. Do not edit. */\n"); + fprintf(fo, "/* This is an automatically generated file. Do not edit. */\n\n"); + fprintf(fo, "#include \"mupdf/pdf.h\"\n"); for (i = 2; i < argc; i++) { @@ -148,7 +149,7 @@ main(int argc, char **argv) fprintf(fo, "\n};\n\n"); } - fprintf(fo, "static pdf_cmap cmap_%s = {\n", name); + fprintf(fo, "pdf_cmap pdf_cmap_%s = {\n", name); fprintf(fo, "\t{-1, pdf_drop_cmap_imp}, "); fprintf(fo, "\"%s\", ", cmap->cmap_name); fprintf(fo, "\"%s\", 0, ", cmap->usecmap_name); |