summaryrefslogtreecommitdiff
path: root/source/fitz/unzip.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-04-26 13:26:45 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-04-27 15:12:03 +0200
commit2208034206c6085fa07063bcc6fdc834d6472912 (patch)
tree48fcce51c9bfeb4ccedbfb347e625b4429491cfa /source/fitz/unzip.c
parent722ff826ea46ef49f57b927435d320c67ae37037 (diff)
downloadmupdf-2208034206c6085fa07063bcc6fdc834d6472912.tar.xz
Use FZ_SEEK_SET macros for fz_seek.
Don't depend on stdio.h for our own I/O functions.
Diffstat (limited to 'source/fitz/unzip.c')
-rw-r--r--source/fitz/unzip.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/fitz/unzip.c b/source/fitz/unzip.c
index b0907fe8..f2d4f322 100644
--- a/source/fitz/unzip.c
+++ b/source/fitz/unzip.c
@@ -1,9 +1,10 @@
+#include "mupdf/fitz.h"
#include "fitz-imp.h"
-#include <zlib.h>
-
#include <string.h>
+#include <zlib.h>
+
#if !defined (INT32_MAX)
#define INT32_MAX 2147483647L
#endif
@@ -226,7 +227,7 @@ static void ensure_zip_entries(fz_context *ctx, fz_zip_archive *zip)
size_t size, back, maxback;
size_t i, n;
- fz_seek(ctx, file, 0, SEEK_END);
+ fz_seek(ctx, file, 0, FZ_SEEK_END);
size = fz_tell(ctx, file);
maxback = fz_minz(size, 0xFFFF + sizeof buf);