diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-10-26 16:33:16 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-10-26 16:33:37 +0300 |
commit | 3e3b809f5832b6e571ce5b016b743d7b8aa4bf27 (patch) | |
tree | bcc9301d6f892ac29cabace8e60c6cb851a941a9 /writerperfect | |
parent | 6e4f2f6f0dad303f13ea3b1a5e527030406a3756 (diff) |
No struct lconv::decimal_point in Android's libc
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/filter/OdgGenerator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx index 2d2beea61cf7..2ead68de4e11 100644 --- a/writerperfect/source/filter/OdgGenerator.cxx +++ b/writerperfect/source/filter/OdgGenerator.cxx @@ -218,7 +218,11 @@ static WPXString doubleToString(const double value) { WPXString tempString; tempString.sprintf("%.4f", value); +#ifndef ANDROID std::string decimalPoint(localeconv()->decimal_point); +#else + std::string decimalPoint("."); +#endif if ((decimalPoint.size() == 0) || (decimalPoint == ".")) return tempString; std::string stringValue(tempString.cstr()); |