summaryrefslogtreecommitdiff
path: root/source/fitz/untar.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/untar.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/untar.c')
-rw-r--r--source/fitz/untar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/untar.c b/source/fitz/untar.c
index 90b6f24d..d8ae6336 100644
--- a/source/fitz/untar.c
+++ b/source/fitz/untar.c
@@ -1,7 +1,7 @@
+#include "mupdf/fitz.h"
#include "fitz-imp.h"
#include <string.h>
-#include <stdio.h>
typedef struct tar_entry_s tar_entry;
typedef struct fz_tar_archive_s fz_tar_archive;
@@ -59,7 +59,7 @@ static void ensure_tar_entries(fz_context *ctx, fz_tar_archive *tar)
tar->count = 0;
- fz_seek(ctx, file, 0, SEEK_SET);
+ fz_seek(ctx, file, 0, FZ_SEEK_SET);
while (1)
{