mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
f5501e25a2
Original commit message from CVS: yay, I can commit again !!! this fixes warnings I had
41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
|
|
/* This file is an attempt to hack compatibility between the
|
|
* FLAC API version used in the code in this directory
|
|
* (currently 1.0.3) and older versions of FLAC, particularly
|
|
* 1.0.2.
|
|
*/
|
|
|
|
#ifndef _FLAC_COMPAT_H_
|
|
#define _FLAC_COMPAT_H_
|
|
|
|
#include <FLAC/all.h>
|
|
|
|
/* FIXME when there's a autoconf symbol */
|
|
#ifndef FLAC_VERSION
|
|
|
|
#ifdef FLAC__REFERENCE_CODEC_MAX_BITS_PER_SAMPLE
|
|
#define FLAC_VERSION 0x010003
|
|
#else
|
|
#define FLAC_VERSION 0x010002
|
|
#endif
|
|
|
|
#endif /* !defined(FLAC_VERSION) */
|
|
|
|
#if FLAC_VERSION < 0x010003
|
|
|
|
#define FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC \
|
|
FLAC__STREAM_DECODER_ERROR_LOST_SYNC
|
|
#define FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER \
|
|
FLAC__STREAM_DECODER_ERROR_BAD_HEADER
|
|
#define FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH \
|
|
FLAC__STREAM_DECODER_ERROR_FRAME_CRC_MISMATCH
|
|
#define FLAC__STREAM_DECODER_WRITE_STATUS_ABORT \
|
|
FLAC__STREAM_DECODER_WRITE_ABORT
|
|
#define FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE \
|
|
FLAC__STREAM_DECODER_WRITE_CONTINUE
|
|
|
|
#define FLAC__StreamMetadata FLAC__StreamMetaData
|
|
|
|
#endif /* FLAC_VERSION < 0x010003 */
|
|
|
|
#endif /* _FLAC_COMPAT_H_ */
|