common: define json_boolean when not defined

Older versions of jansson in current use don't have this
macro defined.
pull/2391/head
Jason Ish 10 years ago committed by Victor Julien
parent f6c0abaae7
commit da40714cb1

@ -219,6 +219,10 @@
#ifndef JSON_ESCAPE_SLASH
#define JSON_ESCAPE_SLASH 0
#endif
/* Appears not all current distros have jansson that defines this. */
#ifndef json_boolean
#define json_boolean(val) ((val) ? json_true() : json_false())
#endif
#endif
#if CPPCHECK==1

Loading…
Cancel
Save