mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 18:52:07 -04:00
MIN and MAX
This commit is contained in:
parent
d091280d77
commit
94803c4a46
1 changed files with 8 additions and 0 deletions
|
|
@ -64,4 +64,12 @@ struct sockaddr_in6 {
|
|||
#define MAXHOSTNAMELEN 256
|
||||
#endif
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(x,y) (((x) <= (y)) ? (x) : (y))
|
||||
#endif
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(x,y) (((x) >= (y)) ? (x) : (y))
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue