From a57f6434e81539d3f261f0dd57327ae4dcd98caa Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 3 Dec 2011 21:20:05 -0500 Subject: [PATCH] Windows: define MIN and MAX MIN and MAX are used throughout the tree. Windows does not define them. A future patchset should convert the openafs src tree to use min and max. Change-Id: Ibe7bba6a49e3c85f94cd1e1c45e904764bf06e02 Reviewed-on: http://gerrit.openafs.org/6209 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/config/afsconfig-windows.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config/afsconfig-windows.h b/src/config/afsconfig-windows.h index 86ddeda..775a7f0 100644 --- a/src/config/afsconfig-windows.h +++ b/src/config/afsconfig-windows.h @@ -268,3 +268,6 @@ typedef int errno_t; /* Build afsroken.dll as a dynamic library */ #define ROKEN_LIB_DYNAMIC 1 + +#define MAX(a,b) (((a) > (b)) ? (a) : (b)) +#define MIN(a,b) (((a) < (b)) ? (a) : (b)) -- 1.9.4