aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist/soundcloud_playlist_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/playlist/soundcloud_playlist_plugin.c')
-rw-r--r--src/playlist/soundcloud_playlist_plugin.c16
1 files 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;