summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-08-17 19:51:50 +0100
committerRobin Watts <robin.watts@artifex.com>2015-08-17 19:51:50 +0100
commit51b88bc1d432bf6d1bec55cc3957167a23f383de (patch)
treef71eb179b73c175b23632ee41ca55c711fbf0b30 /source
parentac2d553aade080b719f7b5b8ad1162dd933e30b5 (diff)
downloadmupdf-51b88bc1d432bf6d1bec55cc3957167a23f383de.tar.xz
Patch around INT32_MAX not being present on windows.
It's a C99ism.
Diffstat (limited to 'source')
-rw-r--r--source/fitz/unzip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/fitz/unzip.c b/source/fitz/unzip.c
index 8c7c1f61..355da552 100644
--- a/source/fitz/unzip.c
+++ b/source/fitz/unzip.c
@@ -2,6 +2,10 @@
#include <zlib.h>
+#if !defined (INT32_MAX)
+#define INT32_MAX 2147483647L
+#endif
+
#define ZIP_LOCAL_FILE_SIG 0x04034b50
#define ZIP_DATA_DESC_SIG 0x08074b50
#define ZIP_CENTRAL_DIRECTORY_SIG 0x02014b50