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

@@ -140,11 +140,11 @@ double TransformState::getMinZoom() const {
double test_y = y;
constrain(test_scale, test_y);
return std::log2(std::fmin(min_scale, test_scale));
return ::log2(::fmin(min_scale, test_scale));
}
double TransformState::getMaxZoom() const {
return std::log2(max_scale);
return ::log2(max_scale);
}