Another build fix.
authorCarl Hetherington <cth@carlh.net>
Fri, 12 Aug 2016 12:25:39 +0000 (13:25 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 12 Aug 2016 12:25:39 +0000 (13:25 +0100)
src/lib/compose.hpp

index 2d22947178703a71deb702e3faedeb6fbd129ca2..44f08e71594e5379ff72b228853a69abf7b3b41c 100644 (file)
@@ -132,6 +132,18 @@ namespace StringPrivate
     s += buffer;
   }
 
+  template <>
+  inline void write(std::string& s, const uint64_t& obj)
+  {
+    char buffer[64];
+#ifdef DCPOMATIC_WINDOWS
+    __mingw_snprintf(buffer, 64, "%" PRud64, obj);
+#else
+    snprintf(buffer, 64, "%" PRIu64, obj);
+#endif
+    s += buffer;
+  }
+
   template <>
   inline void write(std::string& s, const int& obj)
   {