summaryrefslogtreecommitdiff
path: root/source/fitz/dtoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/dtoa.c')
-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 };