Only define MIN/MAX macros if not defined by the system.

This commit is contained in:
Jan Vidar Krey 2010-01-28 01:07:05 +01:00
parent 8e7e8c68f5
commit e0003ebbb2

View File

@ -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 */