From 84d5ab3c862c41ea06c87676093becae976359b4 Mon Sep 17 00:00:00 2001 From: Matthew DeVore Date: Mon, 7 Feb 2022 14:31:07 -0800 Subject: [PATCH] Remove unused `max` macro This conflicts with symbols in the C++ standard library, e.g std::numeric_limits<>::max. I was going to rename it to be more distinct, but it's not used here or in NFS Ganesha, so it can be deleted. Signed-off-by: Matthew DeVore --- ntirpc/misc/portable.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ntirpc/misc/portable.h b/ntirpc/misc/portable.h index c400f316f..7e1b55982 100644 --- a/ntirpc/misc/portable.h +++ b/ntirpc/misc/portable.h @@ -66,10 +66,6 @@ void warnx(const char *fmt, ...); #define CLOCK_MONOTONIC_FAST CLOCK_MONOTONIC #endif -#ifndef max -#define max(a, b) (a > b ? a : b) -#endif - #if !defined(CACHE_LINE_SIZE) #if defined(__PPC64__) #define CACHE_LINE_SIZE 128