]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
nldbl-compat.c: Include math.h before nldbl-compat.h.
authorZack Weinberg <zackw@panix.com>
Sun, 11 Mar 2018 18:09:30 +0000 (14:09 -0400)
committerZack Weinberg <zackw@panix.com>
Sun, 11 Mar 2018 18:20:13 +0000 (14:20 -0400)
Jeff Law noticed that native PowerPC builds were broken by my having
made math_ldbl_opt.h not include math.h.  nldbl-compat.c formerly got
math.h via libioP.h and math_ldbl_opt.h, *without* __NO_LONG_DOUBLE_MATH;
after my change it got it via nldbl-compat.h *with* __NO_LONG_DOUBLE_MATH,
but __NO_LONG_DOUBLE_MATH mode is forbidden on hosts that define
__HAVE_DISTINCT_FLOAT128, so the build breaks.  This is the quick fix.

* sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
before nldbl-compat.h.

ChangeLog
sysdeps/ieee754/ldbl-opt/nldbl-compat.c

index 395f4e50c9f457657bc35c1a49ccd682ca955ebf..eda37a2b314de851c7ca39d43642794826f78034 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-03-11  Zack Weinberg  <zackw@panix.com>
+
+       * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
+       before nldbl-compat.h.
+
 2018-03-10  Zack Weinberg  <zackw@panix.com>
 
        * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
index bf54090d4fb20c1a24f29aa09bb55a88c6317b31..ffb5fabebe7f5a2c31f176ef99fba1e700348ae8 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <libioP.h>
+#include <math.h>
 #include <wchar.h>
 #include <printf.h>
 #include <monetary.h>