Kaydet (Commit) 3e3b809f authored tarafından Tor Lillqvist's avatar Tor Lillqvist

No struct lconv::decimal_point in Android's libc

üst 6e4f2f6f
...@@ -218,7 +218,11 @@ static WPXString doubleToString(const double value) ...@@ -218,7 +218,11 @@ static WPXString doubleToString(const double value)
{ {
WPXString tempString; WPXString tempString;
tempString.sprintf("%.4f", value); tempString.sprintf("%.4f", value);
#ifndef ANDROID
std::string decimalPoint(localeconv()->decimal_point); std::string decimalPoint(localeconv()->decimal_point);
#else
std::string decimalPoint(".");
#endif
if ((decimalPoint.size() == 0) || (decimalPoint == ".")) if ((decimalPoint.size() == 0) || (decimalPoint == "."))
return tempString; return tempString;
std::string stringValue(tempString.cstr()); std::string stringValue(tempString.cstr());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment