Use std::locale() on OS X and std::locale("") elsewhere.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6894 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
392a589092
commit
fecf10173b
|
@ -52,7 +52,11 @@ template <typename I>
|
||||||
std::string ThousandSeparate(I value, int spaces = 0)
|
std::string ThousandSeparate(I value, int spaces = 0)
|
||||||
{
|
{
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
|
#ifdef __APPLE__
|
||||||
oss.imbue(std::locale());
|
oss.imbue(std::locale());
|
||||||
|
#else
|
||||||
|
oss.imbue(std::locale(""));
|
||||||
|
#endif
|
||||||
oss << std::setw(spaces) << value;
|
oss << std::setw(spaces) << value;
|
||||||
|
|
||||||
return oss.str();
|
return oss.str();
|
||||||
|
|
Loading…
Reference in New Issue