diff options
Diffstat (limited to 'src/locale_convert.cc')
| -rw-r--r-- | src/locale_convert.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/locale_convert.cc b/src/locale_convert.cc index 4cd24a7f..64b21274 100644 --- a/src/locale_convert.cc +++ b/src/locale_convert.cc @@ -78,7 +78,11 @@ string dcp::locale_convert (long long int x, int, bool) { char buffer[64]; +#ifdef LIBDCP_WINDOWS + __mingw_snprintf (buffer, sizeof(buffer), "%lld", x); +#else snprintf (buffer, sizeof(buffer), "%lld", x); +#endif return buffer; } @@ -87,7 +91,11 @@ string dcp::locale_convert (unsigned long long int x, int, bool) { char buffer[64]; +#ifdef LIBDCP_WINDOWS + __mingw_snprintf (buffer, sizeof(buffer), "%llu", x); +#else snprintf (buffer, sizeof(buffer), "%llu", x); +#endif return buffer; } @@ -143,6 +151,13 @@ dcp::locale_convert (char const * x, int, bool) } template<> +string +dcp::locale_convert (boost::filesystem::path x, int, bool) +{ + return x.string(); +} + +template<> int dcp::locale_convert (string x, int, bool) { |
