Skip to content

Commit 15fd7eb

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

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/vc8000nanoe/README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,6 @@ Patch List:
8282

8383
* Avoid bool redefinition
8484
Impacted files: inc/basetype.h
85+
86+
* Avoid MIN/MAX redefinition
87+
Impacted files: inc/enccommon.h

lib/vc8000nanoe/inc/enccommon.h

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

154154
/* General tools */
155155
#define ABS(x) ((x) < (0) ? -(x) : (x))
156-
#define MAX(a, b) ((a) > (b) ? (a) : (b))
157-
#define MIN(a, b) ((a) < (b) ? (a) : (b))
158156
#define SIGN(a) ((a) < (0) ? (-1) : (1))
159157
#define OUT_OF_RANGE(x,a,b) ((((i32)x)<(a)?(1):(0)) || ((x)>(b)?(1):(0)))
160158
#define CLIP3(v, min, max) ((v) < (min) ? (min) : ((v) > (max) ? (max) : (v)))

0 commit comments

Comments
 (0)