X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fcompose.hpp;h=2d22947178703a71deb702e3faedeb6fbd129ca2;hp=6206eb61170d7ba4823be190d219182403d4b3f1;hb=2bd3a2f185b4755c4a01ba5c34c1d3e1f78e5c97;hpb=b1dc9c3a2f7e55c9afc5bf2d5b465371b048e14f diff --git a/src/lib/compose.hpp b/src/lib/compose.hpp index 6206eb611..2d2294717 100644 --- a/src/lib/compose.hpp +++ b/src/lib/compose.hpp @@ -39,6 +39,7 @@ #include #include #include +#include namespace StringPrivate { @@ -123,7 +124,11 @@ namespace StringPrivate inline void write(std::string& s, const int64_t& obj) { char buffer[64]; +#ifdef DCPOMATIC_WINDOWS + __mingw_snprintf(buffer, 64, "%" PRId64, obj); +#else snprintf(buffer, 64, "%" PRId64, obj); +#endif s += buffer; }