Skip to content

Commit

Permalink
fixed compilation error with old libjansson
Browse files Browse the repository at this point in the history
  • Loading branch information
vvaltman committed May 15, 2015
1 parent 611211c commit 1823005
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions json-tg.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#include <tgl-layout.h>
#include <assert.h>

#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) {
Expand Down

0 comments on commit 1823005

Please sign in to comment.