Skip to content

Commit 31748f8

Browse files
committed
lib: vc8000nanoe: avoid min/max redefinition
Avoid min/max redefinition. Signed-off-by: Hugues Fruchet <[email protected]>
1 parent d070c1b commit 31748f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/vc8000nanoe/inc/enccommon.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,12 @@ typedef struct
153153

154154
/* General tools */
155155
#define ABS(x) ((x) < (0) ? -(x) : (x))
156+
#ifndef MAX
156157
#define MAX(a, b) ((a) > (b) ? (a) : (b))
158+
#endif
159+
#ifndef MIN
157160
#define MIN(a, b) ((a) < (b) ? (a) : (b))
161+
#endif
158162
#define SIGN(a) ((a) < (0) ? (-1) : (1))
159163
#define OUT_OF_RANGE(x,a,b) ((((i32)x)<(a)?(1):(0)) || ((x)>(b)?(1):(0)))
160164
#define CLIP3(v, min, max) ((v) < (min) ? (min) : ((v) > (max) ? (max) : (v)))

0 commit comments

Comments
 (0)