mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 08:40:09 +01:00
shared: add json_boolean_value support in jansson.h
Released in jansson version 2.7, added for compatibility with older jannson verions.
This commit is contained in:
parent
931910b7de
commit
b6c0498b04
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,11 @@
|
|||
index++)
|
||||
#endif
|
||||
|
||||
/* Added in Jansson v2.7 */
|
||||
#ifndef json_boolean_value
|
||||
#define json_boolean_value json_is_true
|
||||
#endif
|
||||
|
||||
/* Added in Jansson v2.8 */
|
||||
#ifndef json_object_foreach_safe
|
||||
#if JANSSON_VERSION_HEX < 0x020300
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue