summaryrefslogtreecommitdiff
path: root/src/mbgl/util
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2018-02-25 11:10:53 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2018-02-26 13:22:33 +0200
commit17334c74a0c56feaecf3493861bccddaa01c3801 (patch)
tree8775e36366724225c73bbfee99bd6ac75124e9f0 /src/mbgl/util
parentc1b17e251af33d0a14a668018f08a809d5d85bae (diff)
downloadqtlocation-mapboxgl-17334c74a0c56feaecf3493861bccddaa01c3801.tar.gz
[core] Fix build with Qt + Android + GCC 4.9
Android uses and old libc when building with GCC 4.9 and some math functions are not on std::.
Diffstat (limited to 'src/mbgl/util')
-rw-r--r--src/mbgl/util/tiny_sdf.cpp2
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;