diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-04-21 16:22:20 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-04-27 15:12:01 +0200 |
commit | 9534243f6849d1938195c1f27adaa5745056f138 (patch) | |
tree | bc992482d97560154af0a576d052c78cda6bb4ab /source/pdf/pdf-write.c | |
parent | 78c1264e14804a06c6d03072c8c57820fde4e148 (diff) | |
download | mupdf-9534243f6849d1938195c1f27adaa5745056f138.tar.xz |
Include required system headers.
Diffstat (limited to 'source/pdf/pdf-write.c')
-rw-r--r-- | source/pdf/pdf-write.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index 5477fa07..9a066430 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -1,7 +1,13 @@ +#include "mupdf/fitz.h" +#include "mupdf/pdf.h" #include "pdf-imp.h" #include <zlib.h> +#include <assert.h> +#include <string.h> + +#include <stdio.h> /* for debug printing */ /* #define DEBUG_LINEARIZATION */ /* #define DEBUG_HEAP_SORT */ /* #define DEBUG_WRITING */ @@ -2817,7 +2823,7 @@ pdf_parse_write_options(fz_context *ctx, pdf_write_options *opts, const char *ar else if (fz_option_eq(val, "deduplicate")) opts->do_garbage = 3; else - opts->do_garbage = atoi(val); + opts->do_garbage = fz_atoi(val); } return opts; |