summaryrefslogtreecommitdiff
path: root/src/mbgl/util/dtoa.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-06-21 14:44:00 +0200
committerKonstantin Käfer <mail@kkaefer.com>2018-09-11 11:43:54 +0200
commit4a3c4edb59b6881a30056531bc71e52295ab1cb0 (patch)
treeb1c466667efc84cd5f7345d977032155f315ec76 /src/mbgl/util/dtoa.hpp
parent30e570aae7d2ba5522feafb962b334ef3f35459e (diff)
downloadqtlocation-mapboxgl-4a3c4edb59b6881a30056531bc71e52295ab1cb0.tar.gz
[android] add support for gnustl
Diffstat (limited to 'src/mbgl/util/dtoa.hpp')
-rw-r--r--src/mbgl/util/dtoa.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/util/dtoa.hpp b/src/mbgl/util/dtoa.hpp
index 4cb81a94be..e6b1659aa2 100644
--- a/src/mbgl/util/dtoa.hpp
+++ b/src/mbgl/util/dtoa.hpp
@@ -1,11 +1,16 @@
#pragma once
#include <string>
+#include <cstdlib>
namespace mbgl {
namespace util {
std::string dtoa(double value);
+inline double stod(const std::string& str) {
+ return ::strtod(str.c_str(), nullptr);
+}
+
} // end namespace util
} // end namespace mbgl