Don't redefine MAX if it already exists.
This commit is contained in:
parent
a9bbb3357a
commit
0ddce6370d
1 changed files with 3 additions and 0 deletions
|
@ -50,7 +50,10 @@ static const size_t ip6_size = sizeof(struct ip6_hdr);
|
||||||
static const size_t icmp6_size = sizeof(struct icmp6_hdr);
|
static const size_t icmp6_size = sizeof(struct icmp6_hdr);
|
||||||
static const size_t ns_size = sizeof(struct nd_neighbor_solicit);
|
static const size_t ns_size = sizeof(struct nd_neighbor_solicit);
|
||||||
static const size_t opt_size = sizeof(struct nd_opt_hdr);
|
static const size_t opt_size = sizeof(struct nd_opt_hdr);
|
||||||
|
|
||||||
|
#ifndef MAX
|
||||||
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||||
|
#endif
|
||||||
|
|
||||||
/* RFC 1071 */
|
/* RFC 1071 */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue