More build fixes.
[dcpomatic.git] / src / lib / compose.hpp
index b78a8b9ebb172c95aa3f887c9134e9ee2afcf55e..2d22947178703a71deb702e3faedeb6fbd129ca2 100644 (file)
@@ -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;
   }