diff options
author | Robin Watts <robin.watts@artifex.com> | 2014-09-02 16:13:01 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-09-02 16:15:21 +0100 |
commit | 67360bffed2570dc7daf9ce1cf9febc3495e8f2a (patch) | |
tree | 2f2a1feb77b7364a26c672ae0527be37cb2f0481 /source/fitz | |
parent | c5751c40523da6b84236e543bed20cfb39c564b2 (diff) | |
download | mupdf-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.c | 7 |
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 }; |