summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-02-10 19:38:32 +0200
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-02-10 19:38:32 +0200
commitf52b6105db22aeafab0737ba2202d79ca60896f7 (patch)
tree74d9d2a44f3b51ffcb4cf203dff9000d3cc577f2 /src
parent4edb2bc22281bc29822d46c3f39a9f99e40afa49 (diff)
downloadqtlocation-mapboxgl-f52b6105db22aeafab0737ba2202d79ca60896f7.tar.gz
[core] round() not always on std:: namespace
Build fix.
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/util/get_geometries.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mbgl/util/get_geometries.cpp b/src/mbgl/util/get_geometries.cpp
index 4d4d02c5ff..5961af2150 100644
--- a/src/mbgl/util/get_geometries.cpp
+++ b/src/mbgl/util/get_geometries.cpp
@@ -1,6 +1,8 @@
#include <mbgl/util/get_geometries.hpp>
#include <mbgl/util/constants.hpp>
+#include <cmath>
+
namespace mbgl {
GeometryCollection getGeometries(const GeometryTileFeature& feature) {
@@ -8,8 +10,8 @@ GeometryCollection getGeometries(const GeometryTileFeature& feature) {
GeometryCollection geometryCollection = feature.getGeometries();
for (auto& line : geometryCollection) {
for (auto& point : line) {
- point.x = std::round(point.x * scale);
- point.y = std::round(point.y * scale);
+ point.x = ::round(point.x * scale);
+ point.y = ::round(point.y * scale);
}
}
return geometryCollection;