From 09103e40252454e906a0b8543a142fc96b4c17c1 Mon Sep 17 00:00:00 2001 From: "Gabriel F. T. Gomes" Date: Fri, 26 May 2017 19:29:20 -0300 Subject: 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. --- stdlib/gmp-impl.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'stdlib') diff --git a/stdlib/gmp-impl.h b/stdlib/gmp-impl.h index a6594ff..89693c4 100644 --- a/stdlib/gmp-impl.h +++ b/stdlib/gmp-impl.h @@ -64,12 +64,8 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see #define inline /* Empty */ #endif -#ifndef MIN -#define MIN(l,o) ((l) < (o) ? (l) : (o)) -#endif -#ifndef MAX -#define MAX(h,i) ((h) > (i) ? (h) : (i)) -#endif +/* Get MAX/MIN macros. */ +#include /* Field access macros. */ #define SIZ(x) ((x)->_mp_size) -- cgit v1.1