summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2014-09-02 16:13:01 +0100
committerRobin Watts <robin.watts@artifex.com>2014-09-02 16:15:21 +0100
commit67360bffed2570dc7daf9ce1cf9febc3495e8f2a (patch)
tree2f2a1feb77b7364a26c672ae0527be37cb2f0481 /source/fitz
parentc5751c40523da6b84236e543bed20cfb39c564b2 (diff)
downloadmupdf-67360bffed2570dc7daf9ce1cf9febc3495e8f2a.tar.xz
Fix windows build breakages due to missing NAN and INFINITY.
Add some #definery for platforms where NAN and INFINITY aren't defined in std headers.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/dtoa.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/fitz/dtoa.c b/source/fitz/dtoa.c
index eaa3b713..cb7f081b 100644
--- a/source/fitz/dtoa.c
+++ b/source/fitz/dtoa.c
@@ -20,6 +20,13 @@
#include <stdlib.h>
#include <errno.h>
+#ifndef INFINITY
+#define INFINITY (DBL_MAX+DBL_MAX)
+#endif
+#ifndef NAN
+#define NAN (INFINITY-INFINITY)
+#endif
+
typedef unsigned long ulong;
enum { NSIGNIF = 17 };