summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/compose.hpp12
1 files changed, 12 insertions, 0 deletions
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
@@ -133,6 +133,18 @@ namespace StringPrivate
}
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)
{
char buffer[64];