[core] remove special case for Windows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user