summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-12 12:53:46 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-12 12:53:46 +0100
commit2bd3a2f185b4755c4a01ba5c34c1d3e1f78e5c97 (patch)
tree2c28396e895557498720899b24a1273a43e2220e /src/lib
parent80cb87b94c1a6ddb814aed086bd077c1aed9ff7b (diff)
More build fixes.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/compose.hpp4
-rw-r--r--src/lib/log_entry.cc1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/compose.hpp b/src/lib/compose.hpp
index b78a8b9eb..2d2294717 100644
--- a/src/lib/compose.hpp
+++ b/src/lib/compose.hpp
@@ -124,7 +124,11 @@ namespace StringPrivate
inline void write(std::string& s, const int64_t& obj)
{
char buffer[64];
+#ifdef DCPOMATIC_WINDOWS
+ __mingw_snprintf(buffer, 64, "%" PRId64, obj);
+#else
snprintf(buffer, 64, "%" PRId64, obj);
+#endif
s += buffer;
}
diff --git a/src/lib/log_entry.cc b/src/lib/log_entry.cc
index 18eed4894..8a6654811 100644
--- a/src/lib/log_entry.cc
+++ b/src/lib/log_entry.cc
@@ -20,6 +20,7 @@
#include "log_entry.h"
#include <inttypes.h>
+#include <cstdio>
#include "i18n.h"