From 79adcb58f6ca687c61939bbe695ffc8c54558d5f Mon Sep 17 00:00:00 2001 From: Paul Murphy Date: Tue, 17 Nov 2015 12:27:39 -0600 Subject: Shuffle includes in ldbl-128ibm/mpn2ldl.c Kind of hokey, but errno.h drags in misc/sys/param.h which defines MIN/MAX causing an error. Include system headers first to grab MIN/MAX definition in param.h, and define HAVE_ALLOCA to preserve existing behavior. * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers after system headers to prevent MIN/MAX redefinition. Define HAVE_ALLOCA to preserve builtin alloca usage. --- sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sysdeps/ieee754') diff --git a/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c b/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c index 90dae93..c7ebd7e 100644 --- a/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c +++ b/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c @@ -15,13 +15,17 @@ License along with the GNU C Library; if not, see . */ -#include "gmp.h" -#include "gmp-impl.h" #include #include #include #include +/* Need to set this when including gmp headers after system headers. */ +#define HAVE_ALLOCA 1 + +#include "gmp.h" +#include "gmp-impl.h" + /* Convert a multi-precision integer of the needed number of bits (106 for long double) and an integral power of two to a `long double' in IBM extended format. */ -- cgit v1.1