[winpr,utils] add json-c compat

for old json-c releases < 0.14.0 add a json_object_new_null replacement
This commit is contained in:
akallabeth 2024-05-17 12:43:02 +02:00
parent 9c687650a2
commit 48381d0d60
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -39,6 +39,17 @@
#endif
#endif
#if defined(WITH_JSONC)
#if JSON_C_MAJOR_VERSION == 0
#if JSON_C_MINOR_VERSION < 14
static struct json_object* json_object_new_null(void)
{
return NULL;
}
#endif
#endif
#endif
#if defined(USE_CJSON_COMPAT)
static double cJSON_GetNumberValue(const cJSON* const prop)
{