]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Shuffle includes in ldbl-128ibm/mpn2ldl.c
authorPaul Murphy <murphyp@linux.vnet.ibm.com>
Tue, 17 Nov 2015 18:27:39 +0000 (12:27 -0600)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Thu, 19 Nov 2015 17:52:43 +0000 (15:52 -0200)
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.

ChangeLog
sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c

index a915653ac5a222c006bc11f3108c9dc1ce5c9ec5..12cfb98fac56a20f61ba2729499a9b9931dd5907 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
+
+       * 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.
+
 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
 
        * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
index 90dae9325de681b898f8a34cf964fd23379f99a1..c7ebd7ebd82e88a493163836b3987f3e4e6b5227 100644 (file)
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "gmp.h"
-#include "gmp-impl.h"
 #include <ieee754.h>
 #include <errno.h>
 #include <float.h>
 #include <math.h>
 
+/* 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.  */