From: Carl Hetherington Date: Fri, 12 Aug 2016 12:25:39 +0000 (+0100) Subject: Another build fix. X-Git-Tag: v2.9.11~15 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=d5ee6dbd99132d154aa715ef52fd0e26dd34dc21 Another build fix. --- diff --git a/src/lib/compose.hpp b/src/lib/compose.hpp index 2d2294717..44f08e715 100644 --- a/src/lib/compose.hpp +++ b/src/lib/compose.hpp @@ -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) {