From: Jeffrey Altman Date: Sun, 4 Dec 2011 02:20:05 +0000 (-0500) Subject: Windows: define MIN and MAX X-Git-Tag: upstream/1.8.0_pre1^2~2966 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a57f6434e81539d3f261f0dd57327ae4dcd98caa;p=packages%2Fo%2Fopenafs.git 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 --- diff --git a/src/config/afsconfig-windows.h b/src/config/afsconfig-windows.h index 86ddeda6d..775a7f046 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))