summaryrefslogtreecommitdiff
path: root/source/fitz/stream-prog.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-02-25 18:23:49 +0000
committerRobin Watts <robin.watts@artifex.com>2015-02-25 18:34:37 +0000
commit76dff1dc896a57c9daa96df3177884f59f8cee6c (patch)
treeeeb31d2359b0ebd3b58e3a67434101ee291187ae /source/fitz/stream-prog.c
parent92770188d52bed40b9d370fae571897c2b469293 (diff)
downloadmupdf-76dff1dc896a57c9daa96df3177884f59f8cee6c.tar.xz
Add 64 bit windows builds to MSVC solution.
A few casts are required within the code, along with a few #ifdef changes. Some tweaks to curl are required too.
Diffstat (limited to 'source/fitz/stream-prog.c')
-rw-r--r--source/fitz/stream-prog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/stream-prog.c b/source/fitz/stream-prog.c
index fbf42666..c7054bcb 100644
--- a/source/fitz/stream-prog.c
+++ b/source/fitz/stream-prog.c
@@ -1,7 +1,7 @@
#include "mupdf/fitz/stream.h"
#include "mupdf/fitz/string.h"
-#if defined(_WIN32) && !defined(NDEBUG)
+#if (defined(_WIN32) || defined(_WIN64)) && !defined(NDEBUG)
#include "windows.h"
static void
@@ -169,7 +169,7 @@ fz_open_fd_progressive(fz_context *ctx, int fd, int bps)
fz_stream *
fz_open_file_progressive(fz_context *ctx, const char *name, int bps)
{
-#ifdef _WIN32
+#if defined(_WIN32) || defined(_WIN64)
char *s = (char*)name;
wchar_t *wname, *d;
int c, fd;