[core] round() not always on std:: namespace

Build fix.
This commit is contained in:
Thiago Marcos P. Santos
2016-02-10 19:38:32 +02:00
parent 4edb2bc222
commit f52b6105db

View File

@@ -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;