summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/system.h
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 /include/mupdf/fitz/system.h
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 'include/mupdf/fitz/system.h')
-rw-r--r--include/mupdf/fitz/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mupdf/fitz/system.h b/include/mupdf/fitz/system.h
index e5ad84e0..77e3ceb9 100644
--- a/include/mupdf/fitz/system.h
+++ b/include/mupdf/fitz/system.h
@@ -94,6 +94,10 @@
#define fz_jmp_buf jmp_buf
#endif
+/* these constants mirror the corresponding macros in stdio.h */
+#define FZ_SEEK_SET 0
+#define FZ_SEEK_CUR 1
+#define FZ_SEEK_END 2
#ifndef _MSC_VER
/* For gettimeofday */
#include <sys/time.h>