From 0c3712629dad2fdeb5641815549f23774dbf34e9 Mon Sep 17 00:00:00 2001 From: chme Date: Mon, 27 Apr 2015 19:43:07 +0200 Subject: [PATCH] attempt to fix compile with antlr3 v3.4 --- src/filescanner_smartpl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/filescanner_smartpl.c b/src/filescanner_smartpl.c index 60817117..a183f1e5 100644 --- a/src/filescanner_smartpl.c +++ b/src/filescanner_smartpl.c @@ -52,7 +52,12 @@ smartpl_parse_file(const char *file, struct playlist_info *pli) pSMARTPL2SQL sqlconv; SMARTPL2SQL_playlist_return plreturn; +#if ANTLR3C_NEW_INPUT + input = antlr3FileStreamNew((pANTLR3_UINT8) file, ANTLR3_ENC_8BIT); +#else input = antlr3AsciiFileStreamNew((pANTLR3_UINT8) file); +#endif + // The input will be created successfully, providing that there is enough memory and the file exists etc if (input == NULL)