2 /* This file is an attempt to hack compatibility between the
3 * FLAC API version used in the code in this directory
4 * (currently 1.0.3) and older versions of FLAC, particularly
8 #ifndef _FLAC_COMPAT_H_
9 #define _FLAC_COMPAT_H_
13 /* FIXME when there's a autoconf symbol */
16 #ifdef FLAC__REFERENCE_CODEC_MAX_BITS_PER_SAMPLE
17 #define FLAC_VERSION 0x010003
19 #define FLAC_VERSION 0x010002
22 #endif /* !defined(FLAC_VERSION) */
24 #if FLAC_VERSION < 0x010003
26 #define FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC \
27 FLAC__STREAM_DECODER_ERROR_LOST_SYNC
28 #define FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER \
29 FLAC__STREAM_DECODER_ERROR_BAD_HEADER
30 #define FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH \
31 FLAC__STREAM_DECODER_ERROR_FRAME_CRC_MISMATCH
32 #define FLAC__STREAM_DECODER_WRITE_STATUS_ABORT \
33 FLAC__STREAM_DECODER_WRITE_ABORT
34 #define FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE \
35 FLAC__STREAM_DECODER_WRITE_CONTINUE
37 #define FLAC__StreamMetadata FLAC__StreamMetaData
39 #endif /* FLAC_VERSION < 0x010003 */