From 1823005ff5dad6d4988a9511718bffa7e4ed886b Mon Sep 17 00:00:00 2001 From: vvaltman Date: Fri, 15 May 2015 12:58:10 +0300 Subject: [PATCH] fixed compilation error with old libjansson --- json-tg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/json-tg.c b/json-tg.c index 2e714a71..2852e2a3 100644 --- a/json-tg.c +++ b/json-tg.c @@ -7,6 +7,10 @@ #include #include +#ifndef json_boolean +#define json_boolean(val) ((val) ? json_true() : json_false()) +#endif + extern struct tgl_state *TLS; void json_pack_peer_type (json_t *res, tgl_peer_id_t id) {