Needed for compiling With Embarcadero C++Builder 10.3, and probably with others.

This commit is contained in:
David Acevedo 2021-03-02 07:47:22 +01:00
parent 25a5d891c3
commit 2e7c9668c5
2 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ extern JSON_API int msvc_pre1900_c99_snprintf(char* outBuf, size_t size,
// These Macros are maintained for backwards compatibility of external tools.
#if (defined(_MSC_VER) && _MSC_VER >= 1900) || \
(defined(__GNUC__) && __cplusplus >= 201103L) || \
(defined(__clang__) && __clang_major__ == 3 && __clang_minor__ >= 3)
(defined(__clang__) && (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 3)))
#define JSONCPP_CXX_STD_11 1
#else
#define JSONCPP_CXX_STD_11 0

View File

@ -1251,7 +1251,7 @@ Value::Members Value::getMemberNames() const {
static bool IsIntegral(double d) {
double integral_part;
return modf(d, &integral_part) == 0.0;
return std::modf(d, &integral_part) == 0.0;
}
bool Value::isNull() const { return type() == nullValue; }