From da8b01771ff425dd30dca1cb8a8fe943d2ecc90b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 22 Mar 2012 01:07:49 +0100 Subject: playlist/soundcloud: libyajl2 uses size_t for string lengths Fixes build failure on 64 bit. --- src/playlist/soundcloud_playlist_plugin.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/playlist/soundcloud_playlist_plugin.c b/src/playlist/soundcloud_playlist_plugin.c index 30d486e67..7c79f880a 100644 --- a/src/playlist/soundcloud_playlist_plugin.c +++ b/src/playlist/soundcloud_playlist_plugin.c @@ -130,7 +130,13 @@ static int handle_integer(void *ctx, return 1; } -static int handle_string(void *ctx, const unsigned char* stringval, unsigned int stringlen) +static int handle_string(void *ctx, const unsigned char* stringval, +#ifdef HAVE_YAJL1 + unsigned int +#else + size_t +#endif + stringlen) { struct parse_data *data = (struct parse_data *) ctx; const char *s = (const char *) stringval; @@ -154,7 +160,13 @@ static int handle_string(void *ctx, const unsigned char* stringval, unsigned int return 1; } -static int handle_mapkey(void *ctx, const unsigned char* stringval, unsigned int stringlen) +static int handle_mapkey(void *ctx, const unsigned char* stringval, +#ifdef HAVE_YAJL1 + unsigned int +#else + size_t +#endif + stringlen) { struct parse_data *data = (struct parse_data *) ctx; -- cgit v1.2.3