fixed compilation error with old libjansson

This commit is contained in:
vvaltman 2015-05-15 12:58:10 +03:00
parent 611211cc09
commit 1823005ff5

View File

@ -7,6 +7,10 @@
#include <tgl-layout.h> #include <tgl-layout.h>
#include <assert.h> #include <assert.h>
#ifndef json_boolean
#define json_boolean(val) ((val) ? json_true() : json_false())
#endif
extern struct tgl_state *TLS; extern struct tgl_state *TLS;
void json_pack_peer_type (json_t *res, tgl_peer_id_t id) { void json_pack_peer_type (json_t *res, tgl_peer_id_t id) {