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

This commit is contained in:
David Acevedo 2021-03-01 14:47:47 +01:00
parent a15fc7ba88
commit f2f5ce866b
2 changed files with 2 additions and 1 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

@ -16,6 +16,7 @@
#include <iostream>
#include <sstream>
#include <utility>
#include <math.h>
// Provide implementation equivalent of std::snprintf for older _MSC compilers
#if defined(_MSC_VER) && _MSC_VER < 1900