summaryrefslogtreecommitdiff
path: root/src/mbgl/text/glyph_set.cpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-12-20 15:46:10 -0200
committerThiago Marcos P. Santos <thiago@mapbox.com>2017-01-24 11:36:59 +0200
commit3e2fc894f73e5750ad365d7ca3563d535928a17b (patch)
treec591010796fe128a090aaf721e3a558cf3bbe798 /src/mbgl/text/glyph_set.cpp
parent9833ca8b76e9608ba9c3a8928de93b1fb9be3a45 (diff)
downloadqtlocation-mapboxgl-3e2fc894f73e5750ad365d7ca3563d535928a17b.tar.gz
[gcc4.9] std:: namespace issues
Diffstat (limited to 'src/mbgl/text/glyph_set.cpp')
-rw-r--r--src/mbgl/text/glyph_set.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/text/glyph_set.cpp b/src/mbgl/text/glyph_set.cpp
index f9a90f9bb0..493cce61b8 100644
--- a/src/mbgl/text/glyph_set.cpp
+++ b/src/mbgl/text/glyph_set.cpp
@@ -7,6 +7,7 @@
#include <algorithm>
#include <cassert>
+#include <cmath>
namespace mbgl {
@@ -111,7 +112,7 @@ float GlyphSet::determineAverageLineWidth(const std::u16string& logicalInput,
}
}
- int32_t targetLineCount = std::fmax(1, std::ceil(totalWidth / maxWidth));
+ int32_t targetLineCount = ::fmax(1, std::ceil(totalWidth / maxWidth));
return totalWidth / targetLineCount;
}