From: Guus Sliepen Date: Thu, 29 Oct 2015 15:33:45 +0000 (+0100) Subject: Make max() an inline function. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=b0cd5e3cc7c991afbab53f64f7a57887f6c5d403;p=utcp Make max() an inline function. --- 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