This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Remove redefinitions of MIN/MAX


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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]