diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-09-29 11:07:46 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-09-29 11:07:46 +0100 |
| commit | 4e1c04f5448364f0931a2d2d5fe8dcc8619463fc (patch) | |
| tree | 4f70b9a05dcd50cb59ee59d06f54dfa06d6d2785 /src | |
| parent | 4545c55031bd900a1d02b62dcf271465fcd7a2fb (diff) | |
Another similar speculative Win32 fix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/locale_convert.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/locale_convert.cc b/src/locale_convert.cc index 6bab34d1..133c8a3a 100644 --- a/src/locale_convert.cc +++ b/src/locale_convert.cc @@ -202,7 +202,11 @@ long long dcp::locale_convert (string x, int, bool) { long long y = 0; +#ifdef LIBDCP_WINDOWS + __mingw_sscanf (x.c_str(), "%lld", &y); +#else sscanf (x.c_str(), "%lld", &y); +#endif return y; } |
