From e0003ebbb29028fa811fe36167675e7aa89a9029 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Thu, 28 Jan 2010 01:07:05 +0100 Subject: [PATCH] Only define MIN/MAX macros if not defined by the system. --- src/system.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/system.h b/src/system.h index 879241b..11005c8 100644 --- a/src/system.h +++ b/src/system.h @@ -140,8 +140,12 @@ #define INET6_ADDRSTRLEN 46 #endif +#ifndef MIN #define MIN(a, b) ((a) < (b) ? (a) : (b)) -#define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef MAX +#define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif #endif /* HAVE_UHUB_SYSTEM_H */