Consolidate MAX/MIN definitions

There were several, now there is one (two if you count the lower-case
versions).

Signed-off-by: Andy Fleming <afleming@freescale.com>
This commit is contained in:
Andy Fleming
2008-10-30 17:35:30 -05:00
committed by Wolfgang Denk
parent 298e476c66
commit 20d04774f4
7 changed files with 3 additions and 22 deletions

View File

@@ -177,6 +177,9 @@ typedef void (interrupt_handler_t)(void *);
({ typeof (X) __x = (X), __y = (Y); \
(__x > __y) ? __x : __y; })
#define MIN(x, y) min(x, y)
#define MAX(x, y) max(x, y)
/**
* container_of - cast a member of a structure out to the containing structure