More build fixes.
[dcpomatic.git] / src / lib / compose.hpp
index 6206eb61170d7ba4823be190d219182403d4b3f1..2d22947178703a71deb702e3faedeb6fbd129ca2 100644 (file)
@@ -39,6 +39,7 @@
 #include <list>
 #include <map>
 #include <inttypes.h>
+#include <cstdio>
 
 namespace StringPrivate
 {
@@ -123,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;
   }