Revert "Merge remote-tracking branch 'besser82/bugfix/json-c' into 0.15"

This reverts commit 1c4a086e75, reversing
changes made to 1263ea6497.
This commit is contained in:
Drew DeVault 2017-12-17 15:52:34 -05:00
parent 1c4a086e75
commit d0bd0ed598
9 changed files with 17 additions and 48 deletions

View file

@ -1,16 +0,0 @@
#ifndef _SWAY_JSON_HELPER_H
#define _SWAY_JSON_HELPER_H
#include <json-c/json.h>
// Macros for checking a specific version.
#define JSON_C_VERSION_013 (13 << 8)
// json-c v0.13 uses size_t for array_list_length().
#if defined(JSON_C_VERSION_NUM) && JSON_C_VERSION_NUM >= JSON_C_VERSION_013
typedef size_t json_ar_len_t;
#else
typedef int json_ar_len_t;
#endif
#endif // _SWAY_JSON_HELPER_H