X-Git-Url: http://git.meshlink.io/?p=utcp;a=blobdiff_plain;f=utcp.c;h=fc147c295208631454682640fd6e30384b29bf26;hp=95a82c428710ca91f5f2752045eea036bee40c79;hb=b0cd5e3cc7c991afbab53f64f7a57887f6c5d403;hpb=f02ecc4e4cf3860c6f3d833bfb549df1adab7764 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