don't use certain STL functions

some functions defined in <cmath>, as well as std::to_string aren't available on GNU's STL for some platforms, e.g. Android
This commit is contained in:
Konstantin Käfer
2015-08-03 15:01:35 +02:00
parent ab7456075c
commit 78ec33320f
34 changed files with 69 additions and 51 deletions

View File

@@ -312,7 +312,7 @@ double Source::getZoom(const TransformState& state) const {
int32_t Source::coveringZoomLevel(const TransformState& state) const {
double zoom = getZoom(state);
if (info.type == SourceType::Raster || info.type == SourceType::Video) {
zoom = std::round(zoom);
zoom = ::round(zoom);
} else {
zoom = std::floor(zoom);
}
@@ -407,7 +407,7 @@ bool Source::update(MapData& data,
double zoom = getZoom(transformState);
if (info.type == SourceType::Raster || info.type == SourceType::Video) {
zoom = std::round(zoom);
zoom = ::round(zoom);
} else {
zoom = std::floor(zoom);
}