diff --git a/include/json/config.h b/include/json/config.h index 6426c3b..0ff5968 100644 --- a/include/json/config.h +++ b/include/json/config.h @@ -104,7 +104,9 @@ msvc_pre1900_c99_snprintf(char* outBuf, size_t size, const char* format, ...); #define JSONCPP_OP_EXPLICIT #endif -#if defined(__GNUC__) && (__GNUC__ >= 6) +#if defined(__clang__) +#define JSON_USE_INT64_DOUBLE_CONVERSION 1 +#elif defined(__GNUC__) && (__GNUC__ >= 6) #define JSON_USE_INT64_DOUBLE_CONVERSION 1 #endif