projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bd3a2f
)
Another build fix.
author
Carl Hetherington
<cth@carlh.net>
Fri, 12 Aug 2016 12:25:39 +0000
(13:25 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 12 Aug 2016 12:25:39 +0000
(13:25 +0100)
src/lib/compose.hpp
patch
|
blob
|
history
diff --git
a/src/lib/compose.hpp
b/src/lib/compose.hpp
index 2d22947178703a71deb702e3faedeb6fbd129ca2..44f08e71594e5379ff72b228853a69abf7b3b41c 100644
(file)
--- 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)
{