diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-02-25 11:10:53 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-02-25 11:11:28 +0200 |
commit | a0aa8fd672cfaac0c172e3d534c3ddcd1a17b72c (patch) | |
tree | 8b5b4ef1f9e43d791c19e376d2c3997c081ba3d5 | |
parent | 5de373fff0e71496b6aa11ecb6556f958a28d80b (diff) | |
download | qtlocation-mapboxgl-upstream/tmpsantos-gcc_fix.tar.gz |
[core] Fix build with Qt + Android + GCC 4.9upstream/tmpsantos-gcc_fix
Android uses and old libc when building
with GCC 4.9 and some math functions are not
on std::.
-rw-r--r-- | src/mbgl/util/tiny_sdf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/util/tiny_sdf.cpp b/src/mbgl/util/tiny_sdf.cpp index 60839357d5..6edcd83bc2 100644 --- a/src/mbgl/util/tiny_sdf.cpp +++ b/src/mbgl/util/tiny_sdf.cpp @@ -95,7 +95,7 @@ AlphaImage transformRasterToSDF(const AlphaImage& rasterInput, double radius, do for (uint32_t i = 0; i < size; i++) { double distance = gridOuter[i] - gridInner[i]; - sdf.data[i] = std::max(0l, std::min(255l, std::lround(255.0 - 255.0 * (distance / radius + cutoff)))); + sdf.data[i] = std::max(0l, std::min(255l, ::lround(255.0 - 255.0 * (distance / radius + cutoff)))); } return sdf; |