From 5a64d0eb4e839196874e7dfde19765f90e10598c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Thu, 13 Feb 2014 10:26:36 +0000 Subject: [PATCH] fixed compilation issue concerning json_bool not declared on old json lib releasesY --- NEWS | 3 ++- src/lp_json.c | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 46d67e3..016767e 100644 --- a/NEWS +++ b/NEWS @@ -2,7 +2,8 @@ v1.0.0 ------ * new design for HTML pages. - +* fixed compilation issue with old json lib releases using + boolean type and not defining json_bool. * v0.0.9 ** Fixed compilation issue related to 'boolean' type. diff --git a/src/lp_json.c b/src/lp_json.c index c9379c5..ddb8f31 100644 --- a/src/lp_json.c +++ b/src/lp_json.c @@ -26,6 +26,12 @@ #include "lp_json.h" #include "lp_ws.h" +/* Declares json_bool to have consistent code even with + old json lib releases using boolean instead of json_bool.*/ +#ifndef json_bool +typedef boolean json_bool; +#endif + static time_t json_to_time(json_object *json) { const char *str; -- 2.7.4