Fix some Windows compile issues, add JSON_EXPORT's, fix bogus character escapes, define __func__ and omit unistd.h if needed.

This commit is contained in:
Eric Haszlakiewicz
2019-11-23 20:31:14 -05:00
parent f19abcf981
commit 7f30afc6e5
8 changed files with 34 additions and 17 deletions

View File

@@ -166,7 +166,7 @@ static int json_escape_str(struct printbuf *pb, const char *str, int len, int fl
/* reference counting */
extern struct json_object* json_object_get(struct json_object *jso)
struct json_object* json_object_get(struct json_object *jso)
{
if (!jso) return jso;