attempt to fix compile with antlr3 v3.4

This commit is contained in:
chme 2015-04-27 19:43:07 +02:00 committed by ejurgensen
parent c072533264
commit 0c3712629d

View File

@ -52,7 +52,12 @@ smartpl_parse_file(const char *file, struct playlist_info *pli)
pSMARTPL2SQL sqlconv; pSMARTPL2SQL sqlconv;
SMARTPL2SQL_playlist_return plreturn; SMARTPL2SQL_playlist_return plreturn;
#if ANTLR3C_NEW_INPUT
input = antlr3FileStreamNew((pANTLR3_UINT8) file, ANTLR3_ENC_8BIT);
#else
input = antlr3AsciiFileStreamNew((pANTLR3_UINT8) file); input = antlr3AsciiFileStreamNew((pANTLR3_UINT8) file);
#endif
// The input will be created successfully, providing that there is enough memory and the file exists etc // The input will be created successfully, providing that there is enough memory and the file exists etc
if (input == NULL) if (input == NULL)