From: Steven Seungcheol Lee Date: Thu, 9 Dec 2021 11:34:24 +0000 (+0900) Subject: util/json: fix build error of json_object_add_value_uint64 #1260 X-Git-Tag: v2.0-rc0~33^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=19f6a746a8eb455958ba9940f5d984298eae7807;p=users%2Fsagi%2Fnvme-cli.git util/json: fix build error of json_object_add_value_uint64 #1260 util/json used when system does not have json-c library json_object_add_value_uint handled with unsigned long long (64bits) That's why json_object_add_value_uint64 is redefined with it Signed-off-by: Steven Seungcheol Lee --- diff --git a/util/json.h b/util/json.h index 666c78d1..2ef86322 100644 --- a/util/json.h +++ b/util/json.h @@ -54,6 +54,7 @@ int json_object_add_value_type(struct json_object *obj, const char *name, int ty json_object_add_value_type((obj), name, JSON_TYPE_INTEGER, (long long) (val)) #define json_object_add_value_uint(obj, name, val) \ json_object_add_value_type((obj), name, JSON_TYPE_UINT, (unsigned long long) (val)) +#define json_object_add_value_uint64 json_object_add_value_uint #define json_object_add_value_float(obj, name, val) \ json_object_add_value_type((obj), name, JSON_TYPE_FLOAT, (val)) #define json_object_add_value_string(obj, name, val) \