From 1e51336f9599dde8952c9d38211d5584e4870b1d Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Sun, 9 Jun 2013 16:35:02 +0200 Subject: [PATCH] Silence warning if MAX/MIN is already defined --- miner.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miner.h b/miner.h index bd80883a..73da6b6c 100644 --- a/miner.h +++ b/miner.h @@ -223,8 +223,12 @@ static inline int fsync (int fd) #define semtimedop(SEM, SOPS, VAL, TIMEOUT) semop(SEM, SOPS, VAL) #endif +#ifndef MIN #define MIN(x, y) ((x) > (y) ? (y) : (x)) +#endif +#ifndef MAX #define MAX(x, y) ((x) > (y) ? (x) : (y)) +#endif /* Put avalon last to make it the last device it tries to detect to prevent it * trying to claim same chip but different devices. Adding a device here will