diff options
Diffstat (limited to 'src/locale_convert.cc')
| -rw-r--r-- | src/locale_convert.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/locale_convert.cc b/src/locale_convert.cc index 46d5507f..915cac82 100644 --- a/src/locale_convert.cc +++ b/src/locale_convert.cc @@ -269,6 +269,19 @@ dcp::locale_convert (string x, int, bool) } template<> +unsigned long long +dcp::locale_convert (string x, int, bool) +{ + unsigned long long y = 0; +#ifdef LIBDCP_WINDOWS + __mingw_sscanf (x.c_str(), "%llud", &y); +#else + sscanf (x.c_str(), "%llud", &y); +#endif + return y; +} + +template<> float dcp::locale_convert (string x, int, bool) { |
