1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Silence warning if MAX/MIN is already defined

This commit is contained in:
Henrik Nordstrom 2013-06-09 16:35:02 +02:00
parent 1ceeb3b76c
commit 1e51336f95

View File

@ -223,8 +223,12 @@ static inline int fsync (int fd)
#define semtimedop(SEM, SOPS, VAL, TIMEOUT) semop(SEM, SOPS, VAL) #define semtimedop(SEM, SOPS, VAL, TIMEOUT) semop(SEM, SOPS, VAL)
#endif #endif
#ifndef MIN
#define MIN(x, y) ((x) > (y) ? (y) : (x)) #define MIN(x, y) ((x) > (y) ? (y) : (x))
#endif
#ifndef MAX
#define MAX(x, y) ((x) > (y) ? (x) : (y)) #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 /* 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 * trying to claim same chip but different devices. Adding a device here will