[PATCH] Remove redefinitions of MIN/MAX

Jeff Johnston jjohnstn@redhat.com
Thu Jun 8 01:40:00 GMT 2006


Patch checked in.

-- Jeff J.


Fred Fish wrote:
> MIN and MAX are unnecessarily redefined.
> 
> 2006-06-05  Fred Fish  <fnf@specifix.com>
> 
> 	* libc/search/hash_bigkey.c (MIN,MAX): Remove
> 	defines that are already supplied by <sys/param.h>.
> 
> Index: newlib/newlib/libc/search/hash_bigkey.c
> ===================================================================
> RCS file: /cvsroots/latest/src/newlib/newlib/libc/search/hash_bigkey.c,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 hash_bigkey.c
> --- newlib/newlib/libc/search/hash_bigkey.c	8 Oct 2005 19:45:12 -0000	1.1.1.1
> +++ newlib/newlib/libc/search/hash_bigkey.c	6 Jun 2006 18:18:12 -0000
> @@ -40,10 +40,6 @@ static char sccsid[] = "@(#)hash_bigkey.
>  #endif /* LIBC_SCCS and not lint */
>  #include <sys/cdefs.h>
>  
> -/* Macros for min/max.  */
> -#define MIN(a,b) (((a)<(b))?(a):(b))
> -#define MAX(a,b) (((a)>(b))?(a):(b))
> -
>  /*
>   * PACKAGE: hash
>   * DESCRIPTION:
> 



More information about the Newlib mailing list