summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-05-03 13:56:30 +0100
committerRobin Watts <robin.watts@artifex.com>2017-05-03 13:58:21 +0100
commite3b67278d96ffa9ea8ec0c74b5508a90cdecac0b (patch)
treec15be919827d53ebc1163d2a3081d678ddde517a
parent30d47296e006add5424e31f97142b7f6b9c539e0 (diff)
downloadmupdf-e3b67278d96ffa9ea8ec0c74b5508a90cdecac0b.tar.xz
Fix windows build: Don't set _LARGEFILE64_SOURCE on windows
This causes zlib to look for a header we don't have.
-rw-r--r--include/mupdf/fitz/system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mupdf/fitz/system.h b/include/mupdf/fitz/system.h
index 77e3ceb9..06eb1737 100644
--- a/include/mupdf/fitz/system.h
+++ b/include/mupdf/fitz/system.h
@@ -11,10 +11,12 @@
* file pointers code. This must happen before the stdio.h include. */
#ifdef FZ_LARGEFILE
/* Set _LARGEFILE64_SOURCE so that we know fopen64 et al will be declared. */
+#ifndef _WIN32
#ifndef _LARGEFILE64_SOURCE
#define _LARGEFILE64_SOURCE
#endif
#endif
+#endif
/* Turn on valgrind pacification in debug builds. */
#ifndef NDEBUG