summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/fitz/printf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/fitz/printf.c b/source/fitz/printf.c
index c6cb90a9..e06ec486 100644
--- a/source/fitz/printf.c
+++ b/source/fitz/printf.c
@@ -1,9 +1,14 @@
#include "mupdf/fitz.h"
#ifdef _MSC_VER /* Microsoft Visual C */
-#define va_copy(a, oa) a=oa
+#define va_copy(a, oa) do { a=oa; } while (0)
+#ifndef va_end
#define va_end(a)
#endif
+#ifndef strtof
+#define strtof(a, b) ((float)strtod((a), (b)))
+#endif
+#endif
struct fmtbuf
{