neocities.h

a C library for interacting with Neocities' API
git clone https://github.com/tanguyandreani/neocities.h
Log | Files | Refs | README | LICENSE

commit 52bcb053b9092419fe5835dc8aeea50d2145fe52
parent b9349fa1020f320022cb7711950c6ed565a16c6f
Author: Tanguy Andreani <dev@tanguy.space>
Date:   Fri,  8 Mar 2019 18:59:03 +0100

compatibility with development version of libjson-c

Diffstat:
Mneocities.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/neocities.h b/neocities.h @@ -766,7 +766,7 @@ enum neocities_low_level_error neocities_json_to_struct(json_object * jobj, /* TRUE is defined by libjson-c */ (res->data.list.files)[i].is_directory = (json_object_get_boolean(jobj_iter_list.val) == - TRUE ? 1 : 0); + ((json_bool)1) ? 1 : 0); }