1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-15 07:41:50 +03:00
This commit is contained in:
Niels
2015-12-06 17:33:47 +01:00
parent c013223276
commit 6f8e36ac3d
3 changed files with 39 additions and 1 deletions

View File

@ -70,6 +70,25 @@ Class @ref nlohmann::basic_json is a good entry point for the documentation.
using ssize_t = SSIZE_T;
#endif
// workaround for Android NDK (see https://github.com/nlohmann/json/issues/136)
#ifdef __ANDROID__
namespace std
{
template <typename T>
std::string to_string(T v)
{
std::ostringstream ss;
ss << v;
return ss.str();
}
inline long double strtold(const char* str, char** str_end)
{
return strtod(str, str_end);
}
}
#endif
/*!
@brief namespace for Niels Lohmann
@see https://github.com/nlohmann
@ -6009,7 +6028,6 @@ class basic_json
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
};
if ((m_limit - m_cursor) < 5)
{
yyfill(); // LCOV_EXCL_LINE;