Include sys/param.h in stdlib/gmp-impl.h instead of redefining MAX/MIN

In stdlib/gmp-impl.h, the macros MAX and MIN are defined exactly the same
as in sys/param.h.  This patch removes the redefinition and makes
gmp-impl.h include sys/param.h instead.

Tested for powerpc64le and s390x.

	* stdlib/gmp-impl.h: Include sys/param.h instead of redefining the
	macros MAX and MIN.
This commit is contained in:
Gabriel F. T. Gomes 2017-05-26 19:29:20 -03:00
parent 6da85a0daf
commit 09103e4025
2 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2017-06-01 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
* stdlib/gmp-impl.h: Include sys/param.h instead of redefining the
macros MAX and MIN.
2017-06-01 Joseph Myers <joseph@codesourcery.com> 2017-06-01 Joseph Myers <joseph@codesourcery.com>
* conform/data/signal.h-data (sa_sigaction): Do not expect for * conform/data/signal.h-data (sa_sigaction): Do not expect for

View File

@ -64,12 +64,8 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see
#define inline /* Empty */ #define inline /* Empty */
#endif #endif
#ifndef MIN /* Get MAX/MIN macros. */
#define MIN(l,o) ((l) < (o) ? (l) : (o)) #include <sys/param.h>
#endif
#ifndef MAX
#define MAX(h,i) ((h) > (i) ? (h) : (i))
#endif
/* Field access macros. */ /* Field access macros. */
#define SIZ(x) ((x)->_mp_size) #define SIZ(x) ((x)->_mp_size)