From d5ee6dbd99132d154aa715ef52fd0e26dd34dc21 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 12 Aug 2016 13:25:39 +0100 Subject: [PATCH] Another build fix. --- src/lib/compose.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) { -- 2.30.2