Rename json.cpp to json.c again

This commit is contained in:
def 2015-07-01 14:13:06 +02:00
parent e503b7def5
commit 7f8ce3c8dd
3 changed files with 2 additions and 2 deletions

View file

@ -258,7 +258,7 @@ function build(settings)
-- build the small libraries
wavpack = Compile(settings, Collect("src/engine/external/wavpack/*.c"))
pnglite = Compile(settings, Collect("src/engine/external/pnglite/*.c"))
jsonparser = Compile(settings, Collect("src/engine/external/json-parser/*.cpp"))
jsonparser = Compile(settings, Collect("src/engine/external/json-parser/*.c"))
md5 = Compile(settings, "src/engine/external/md5/md5.c")
if config.websockets.value then
libwebsockets = Compile(settings, Collect("src/engine/external/libwebsockets/*.c"))

View file

@ -213,7 +213,7 @@ inline const struct _json_value *json_array_get (const json_value * array, int i
inline int json_array_length (const json_value * array) { return array->u.array.length; }
inline const char * json_string_get (const json_value * string) { return string->u.string.ptr; }
inline int json_int_get (const json_value * integer) { return integer->u.integer; }
inline bool json_boolean_get(const json_value * boolean) { return boolean->u.boolean != 0; }
inline int json_boolean_get(const json_value * boolean) { return boolean->u.boolean != 0; }
#ifdef __cplusplus
} /* extern "C" */