diff options
author | David Schleef <ds@schleef.org> | 2002-10-11 01:04:10 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2002-10-11 01:04:10 +0000 |
commit | cea94d9130ef92d46589ec8b416acdf5905d7a66 (patch) | |
tree | ef3312033fab88be5a9a9f73a0e050ad6493464a /ext | |
parent | a06f00ebb1af8ac9fd6bc4a4414d64c7c45026ad (diff) |
more compatibility stuff for 1.0.3 -> 1.0.4
Original commit message from CVS:
more compatibility stuff for 1.0.3 -> 1.0.4
Diffstat (limited to 'ext')
-rw-r--r-- | ext/flac/flac_compat.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/flac/flac_compat.h b/ext/flac/flac_compat.h index f1af0eba..9e7f3802 100644 --- a/ext/flac/flac_compat.h +++ b/ext/flac/flac_compat.h @@ -13,14 +13,24 @@ /* FIXME when there's a autoconf symbol */ #ifndef FLAC_VERSION +#ifdef FLAC__STREAM_ENCODER_OK +#define FLAC_VERSION 0x010004 +#else #ifdef FLAC__REFERENCE_CODEC_MAX_BITS_PER_SAMPLE #define FLAC_VERSION 0x010003 #else #define FLAC_VERSION 0x010002 #endif +#endif #endif /* !defined(FLAC_VERSION) */ +#if FLAC_VERSION < 0x010004 +#define FLAC__STREAM_ENCODER_OK FLAC__STREAM_ENCODER_WRITE_OK +#define FLAC__seekable_stream_decoder_process_single(a) \ + FLAC__seekable_stream_decoder_process_one_frame(a) +#endif /* FLAC_VERSION < 0x010004 */ + #if FLAC_VERSION < 0x010003 #define FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC \ |