X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=utcp.c;h=fc147c295208631454682640fd6e30384b29bf26;hb=b0cd5e3cc7c991afbab53f64f7a57887f6c5d403;hp=95a82c428710ca91f5f2752045eea036bee40c79;hpb=05ee8ad65c1c7f1318e1185ddf299a2cce6c6474;p=utcp diff --git a/utcp.c b/utcp.c index 95a82c4..fc147c2 100644 --- a/utcp.c +++ b/utcp.c @@ -53,9 +53,9 @@ } while (0) #endif -#ifndef max -#define max(a, b) ((a) > (b) ? (a) : (b)) -#endif +static inline size_t max(size_t a, size_t b) { + return a > b ? a : b; +} #ifdef UTCP_DEBUG #include