mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
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:
@ -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 <sys/param.h>
|
||||
|
||||
/* Field access macros. */
|
||||
#define SIZ(x) ((x)->_mp_size)
|
||||
|
Reference in New Issue
Block a user