This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Remove redefinitions of MIN/MAX
- From: Fred Fish <fnf at specifix dot com>
- To: newlib at sources dot redhat dot com
- Date: Tue, 6 Jun 2006 21:53:11 -0400
- Subject: [PATCH] Remove redefinitions of MIN/MAX
- Reply-to: fnf at specifix dot com
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: