From 67360bffed2570dc7daf9ce1cf9febc3495e8f2a Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 2 Sep 2014 16:13:01 +0100 Subject: 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. --- source/fitz/dtoa.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/fitz') 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 #include +#ifndef INFINITY +#define INFINITY (DBL_MAX+DBL_MAX) +#endif +#ifndef NAN +#define NAN (INFINITY-INFINITY) +#endif + typedef unsigned long ulong; enum { NSIGNIF = 17 }; -- cgit v1.2.3