assume old flac api when FLAC_API_VERSION_CURRENT is not defined

the code is inconsistent when FLAC_API_VERSION_CURRENT is not defined:
sometimes version > 7 is assumed, and sometimes version <= 7.  solve
this by assuming the version is old when FLAC_API_VERSION_CURRENT is
not defined.
Signed-off-by: Eric Wong <normalperson@yhbt.net>

git-svn-id: https://svn.musicpd.org/mpd/trunk@7144 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Max Kellermann 2008-01-26 12:46:26 +00:00 committed by Eric Wong
parent 07adb14e3c
commit 07eaad301a
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ static int flac_decode_internal(OutputBuffer * cb, DecoderControl * dc,
return -1;
init_FlacData(&data, cb, dc, inStream);
#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT > 7
#if defined(FLAC_API_VERSION_CURRENT) && FLAC_API_VERSION_CURRENT > 7
if(!FLAC__stream_decoder_set_metadata_respond(flacDec, FLAC__METADATA_TYPE_VORBIS_COMMENT))
{
DEBUG(__FILE__": Failed to set metadata respond\n");