Remove yajl major version conditionals
Yajl version ≥ 2 is required. fixes #1156
This commit is contained in:
committed by
Michael Stapelberg
parent
22b4215d92
commit
13db562551
@ -17,12 +17,6 @@
|
||||
#define y(x, ...) yajl_gen_ ## x (gen, ##__VA_ARGS__)
|
||||
#define ystr(str) yajl_gen_string(gen, (unsigned char*)str, strlen(str))
|
||||
|
||||
#if YAJL_MAJOR >= 2
|
||||
#define ygenalloc() yajl_gen_alloc(NULL)
|
||||
#define yalloc(callbacks, client) yajl_alloc(callbacks, NULL, client)
|
||||
typedef size_t ylength;
|
||||
#else
|
||||
#define ygenalloc() yajl_gen_alloc(NULL, NULL);
|
||||
#define yalloc(callbacks, client) yajl_alloc(callbacks, NULL, NULL, client)
|
||||
typedef unsigned int ylength;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user