From 78d75b1dcf0d42e6ad5ce8b7203a19e17b9c87dc Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Sun, 30 Aug 2026 02:46:44 +0300 Subject: utils: centralize max macro Closes #354 --- accel-pppd/utils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'accel-pppd/utils.h') diff --git a/accel-pppd/utils.h b/accel-pppd/utils.h index 7c62422c..6c03299f 100644 --- a/accel-pppd/utils.h +++ b/accel-pppd/utils.h @@ -10,6 +10,10 @@ #define min(x, y) ((x) < (y) ? (x) : (y)) #endif +#ifndef max +#define max(x, y) ((x) > (y) ? (x) : (y)) +#endif + /* * Fixed-size memcpy() lets the compiler emit efficient unaligned accesses on * architectures that support them without imposing alignment or aliasing -- cgit v1.2.3