From 3d3d46887ab364407cd413edd94e2afd050374df Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 30 Apr 2017 08:51:34 +0000 Subject: [PATCH] tiny tidy-ups to snd_flac git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1404 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/snd_flac.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Quake/snd_flac.c b/Quake/snd_flac.c index b53f7435..b5417b32 100644 --- a/Quake/snd_flac.c +++ b/Quake/snd_flac.c @@ -31,7 +31,7 @@ #undef LEGACY_FLAC #include -/* FLAC >= 1.1.3 has FLAC_API_VERSION_CURRENT == 8 */ +/* FLAC 1.1.3 has FLAC_API_VERSION_CURRENT == 8 */ #if !defined(FLAC_API_VERSION_CURRENT) || ((FLAC_API_VERSION_CURRENT+0) < 8) #define LEGACY_FLAC #include @@ -62,9 +62,9 @@ #define FLAC__STREAM_DECODER_TELL_STATUS_OK FLAC__SEEKABLE_STREAM_DECODER_TELL_STATUS_OK #define FLAC__STREAM_DECODER_TELL_STATUS_ERROR FLAC__SEEKABLE_STREAM_DECODER_TELL_STATUS_ERROR #define FLAC__STREAM_DECODER_LENGTH_STATUS_OK FLAC__SEEKABLE_STREAM_DECODER_LENGTH_STATUS_OK -typedef unsigned FLAC_size_t; +typedef unsigned FLAC_SIZE_T; #else -typedef size_t FLAC_size_t; +typedef size_t FLAC_SIZE_T; #endif typedef struct { @@ -87,7 +87,7 @@ flac_error_func (const FLAC__StreamDecoder *decoder, static FLAC__StreamDecoderReadStatus flac_read_func (const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], - FLAC_size_t *bytes, void *client_data) + FLAC_SIZE_T *bytes, void *client_data) { flacfile_t *ff = (flacfile_t *) client_data; if (*bytes > 0)