Skip to content

Commit

Permalink
Define jaon_boolean if compiling against jansson < 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Harmon committed Oct 11, 2013
1 parent a16fa85 commit 40e0696
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vmod_json.c
Expand Up @@ -19,6 +19,10 @@

#include "vcc_if.h"

#if JANSSON_MAJOR_VERSION <= 2 && JANSSON_MINOR_VERSION < 4
#define json_boolean(val) ((val) ? json_true() : json_false())
#endif

// TODO: Figure out how to do logging properly here
#define dbgprintf(...)

Expand Down

0 comments on commit 40e0696

Please sign in to comment.