1
0
Fork 0
mirror of https://github.com/swaywm/sway.git synced 2025-03-17 12:04:27 +00:00
sway/include/sway_json_helper.h
2017-12-14 18:47:24 +01:00

16 lines
394 B
C

#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