diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-15 13:59:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-15 13:59:08 +0100 |
| commit | 42bd2a0ed674d167c27dd4cf214ea91b48315bcf (patch) | |
| tree | 01524b1ce784fb78424e32dfb7db110d6a4f9686 /src/locale_convert.cc | |
| parent | 9b9be06af7a51cac6f957db16ec2695c79ffb8fd (diff) | |
Hack.osx
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) { |
