mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
V2: Use a single definition of MIN and MAX in sources
This commit is contained in:
committed by
Erik de Castro Lopo
parent
d30fe60fc6
commit
f029625591
@@ -38,6 +38,7 @@
|
||||
#include "private/bitmath.h"
|
||||
#include "private/bitreader.h"
|
||||
#include "private/crc.h"
|
||||
#include "private/macros.h"
|
||||
#include "FLAC/assert.h"
|
||||
#include "share/endswap.h"
|
||||
|
||||
@@ -109,15 +110,6 @@ static const unsigned char byte_to_unary_table[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
#ifdef min
|
||||
#undef min
|
||||
#endif
|
||||
#define min(x,y) ((x)<(y)?(x):(y))
|
||||
#ifdef max
|
||||
#undef max
|
||||
#endif
|
||||
#define max(x,y) ((x)>(y)?(x):(y))
|
||||
|
||||
/* adjust for compilers that can't understand using LLU suffix for uint64_t literals */
|
||||
#ifdef _MSC_VER
|
||||
#define FLAC__U64L(x) x
|
||||
@@ -547,7 +539,7 @@ FLAC__bool FLAC__bitreader_skip_bits_no_crc(FLAC__BitReader *br, unsigned bits)
|
||||
FLAC__uint32 x;
|
||||
|
||||
if(n != 0) {
|
||||
m = min(8-n, bits);
|
||||
m = flac_min(8-n, bits);
|
||||
if(!FLAC__bitreader_read_raw_uint32(br, &x, m))
|
||||
return false;
|
||||
bits -= m;
|
||||
|
||||
Reference in New Issue
Block a user