diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-12 13:25:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-12 13:25:39 +0100 |
| commit | d5ee6dbd99132d154aa715ef52fd0e26dd34dc21 (patch) | |
| tree | e51f6fb1b8b93d9dcb3b66160701ff9168d96253 /src/lib | |
| parent | 2bd3a2f185b4755c4a01ba5c34c1d3e1f78e5c97 (diff) | |
Another build fix.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/compose.hpp | 12 |
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]; |
