From b0cd5e3cc7c991afbab53f64f7a57887f6c5d403 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 29 Oct 2015 16:33:45 +0100 Subject: [PATCH] Make max() an inline function. --- utcp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2