diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-12-20 15:46:10 -0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2017-01-24 11:36:59 +0200 |
commit | 3e2fc894f73e5750ad365d7ca3563d535928a17b (patch) | |
tree | c591010796fe128a090aaf721e3a558cf3bbe798 /src/mbgl/text/glyph_set.cpp | |
parent | 9833ca8b76e9608ba9c3a8928de93b1fb9be3a45 (diff) | |
download | qtlocation-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.cpp | 3 |
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; } |