diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-10-18 20:23:09 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-10-22 11:53:45 +0200 |
commit | aa28155b6dead0d2934e6c289c1b3dc76de64c74 (patch) | |
tree | 7c3e199aee521d4b85d6f22d50cface61a5e0bcb /src/mbgl | |
parent | 61e43789f52f127baf6940df26e8b1f2ffafe329 (diff) | |
download | qtlocation-mapboxgl-aa28155b6dead0d2934e6c289c1b3dc76de64c74.tar.gz |
[core] remove special case for Windows
Diffstat (limited to 'src/mbgl')
-rw-r--r-- | src/mbgl/util/dtoa.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mbgl/util/dtoa.cpp b/src/mbgl/util/dtoa.cpp index 934a78f7ab..844d50b745 100644 --- a/src/mbgl/util/dtoa.cpp +++ b/src/mbgl/util/dtoa.cpp @@ -1,18 +1,10 @@ #include "dtoa.hpp" -// Clang/C2 on Windows 64-bits can't parse rapidjson's dtoa -// and it was causing the compiler to crash. -#if !defined(_WINDOWS) #include <rapidjson/internal/dtoa.h> -#endif - -#include <mbgl/util/string.hpp> namespace mbgl { namespace util { -#if !defined(_WINDOWS) - std::string dtoa(double value, bool decimal) { std::string data; data.resize(25); @@ -26,13 +18,5 @@ std::string dtoa(double value, bool decimal) { return data; } -#else - -std::string dtoa(double value) { - return std::to_string(value); -} - -#endif - } // namespace util } // namespace mbgl |