mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Rename json.cpp to json.c again
This commit is contained in:
parent
e503b7def5
commit
7f8ce3c8dd
2
bam.lua
2
bam.lua
|
@ -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"))
|
||||
|
|
2
src/engine/external/json-parser/json.h
vendored
2
src/engine/external/json-parser/json.h
vendored
|
@ -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" */
|
||||
|
|
Loading…
Reference in a new issue