summaryrefslogtreecommitdiff
path: root/source/fitz/ftoa.c
diff options
context:
space:
mode:
authorJoseph Heenan <joseph@emobix.co.uk>2014-10-04 08:08:57 -0500
committerJoseph Heenan <joseph@emobix.co.uk>2014-10-04 08:11:35 -0500
commit39ee719d76c9c3522a0e51d2507f826bf9692a80 (patch)
tree55ab3a7276283e1a86deaa0059caf1dbf7c7c4be /source/fitz/ftoa.c
parent9268b59ffcb5e5a276324d692c9d63c0e2f1e3ce (diff)
downloadmupdf-39ee719d76c9c3522a0e51d2507f826bf9692a80.tar.xz
Avoid redefinition warning from clang when building cmapdump.c
In file included from scripts/cmapdump.c:19: scripts/../source/fitz/ftoa.c:30:23: warning: redefinition of typedef 'ulong' is a C11 feature [-Wtypedef-redefinition] typedef unsigned long ulong; ^ scripts/../source/fitz/strtod.c:30:23: note: previous definition is here typedef unsigned long ulong; ^ 1 warning generated. (Apparently in earlier versions of clang this is an error.)
Diffstat (limited to 'source/fitz/ftoa.c')
-rw-r--r--source/fitz/ftoa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/fitz/ftoa.c b/source/fitz/ftoa.c
index dc3ce73b..47759425 100644
--- a/source/fitz/ftoa.c
+++ b/source/fitz/ftoa.c
@@ -27,7 +27,10 @@
#define NAN (INFINITY-INFINITY)
#endif
+#ifndef DEFINED_ULONG
+#define DEFINED_ULONG
typedef unsigned long ulong;
+#endif
enum { NSIGNIF = 9 };