more compatibility stuff for 1.0.3 -> 1.0.4
authorDavid Schleef <ds@schleef.org>
Fri, 11 Oct 2002 01:04:10 +0000 (01:04 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 11 Oct 2002 01:04:10 +0000 (01:04 +0000)
Original commit message from CVS:
more compatibility stuff for 1.0.3 -> 1.0.4

ext/flac/flac_compat.h

index f1af0ebae7f09003796820fc9797df095498f7c8..9e7f38025b85ca793fdb2b9fc04024bb31a15988 100644 (file)
 /* 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 \