summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-09-02 17:16:17 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-09-05 13:29:00 +0300
commit8940c104cd5db9ecf881b4b8cae52b3140792f4f (patch)
tree67693087c45626836adf9b0d49a3ae0facdda9cd
parent707846c9cd974528e7574a20ab3c2874ab4054a9 (diff)
downloadqtlocation-mapboxgl-8940c104cd5db9ecf881b4b8cae52b3140792f4f.tar.gz
[build] Support older versions of ICU
-rw-r--r--platform/default/src/mbgl/util/format_number.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/default/src/mbgl/util/format_number.cpp b/platform/default/src/mbgl/util/format_number.cpp
index 7cc863818a..1d3d657029 100644
--- a/platform/default/src/mbgl/util/format_number.cpp
+++ b/platform/default/src/mbgl/util/format_number.cpp
@@ -23,7 +23,9 @@ std::string formatNumber(double number, const std::string& localeId, const std::
.toString();
} else {
ustr = icu::number::NumberFormatter::with()
+#if U_ICU_VERSION_MAJOR_NUM >= 62
.precision(icu::number::Precision::minMaxFraction(minFractionDigits, maxFractionDigits))
+#endif
.locale(locale)
.formatDouble(number, status)
.toString();