From e369041480b01cc660041e81e07d8afbbd42e706 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Wed, 18 Oct 2006 12:00:18 +0000 Subject: Protected the MAX and MIN macros --- generic/List.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'generic') diff --git a/generic/List.c b/generic/List.c index 99462aa..974f835 100644 --- a/generic/List.c +++ b/generic/List.c @@ -73,8 +73,12 @@ static const char compile_id[]="$Compile: " __FILE__ " " __DATE__ " " __TIME__ " #define MAX_CHUNCK_SIZE 1024 -#define MAX(a, b) ((a) > (b) ? (a) : (b)) -#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#ifndef MAX +# define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef MIN +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif /* -- cgit v1.1