From 59c5754fa8225d8f1f674b2589d4be29e0716dd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Thu, 18 Oct 2018 20:23:09 +0200 Subject: [core] remove special case for Windows --- src/mbgl/util/dtoa.cpp | 16 ---------------- 1 file changed, 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 -#endif - -#include 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 -- cgit v1.2.1