math: Reverse include order in <math-type-macros-*.h>
authorFlorian Weimer <fweimer@redhat.com>
Thu, 17 May 2018 12:53:19 +0000 (14:53 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 17 May 2018 13:48:42 +0000 (15:48 +0200)
_Float128 is defined for certain compilers indirectly from
<libm-alias-double.h>, and <ieee754_float128.h> (included from
<math-nan-payload-float128.h>) needs this definition.

ChangeLog
sysdeps/generic/math-type-macros-double.h
sysdeps/generic/math-type-macros-float.h
sysdeps/generic/math-type-macros-float128.h
sysdeps/generic/math-type-macros-ldouble.h

index 066c21343779851c1b45a2b3bd54772539b2705c..9b49b1c0f3044a5ec31bf5f71043120286168771 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2018-05-17  Florian Weimer  <fweimer@redhat.com>
+
+       * sysdeps/generic/math-type-macros-double.h: Include
+       <math-nan-payload-double.h> after <libm-alias-double.h>.
+       * sysdeps/generic/math-type-macros-float.h: Include
+       <math-nan-payload-float.h> after <libm-alias-float.h>.
+       * sysdeps/generic/math-type-macros-float128.h: Include
+       <math-nan-payload-float128.h> after <libm-alias-float128.h>.
+       * sysdeps/generic/math-type-macros-ldouble.h: Include
+       <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
+
 2018-05-17  Andreas Schwab  <schwab@suse.de>
 
        * resolv/res_send.c (__res_context_send): Don't set errno when
index 156418221da4b2c45958020a598d55a83a68f98d..be5d94488f7cd91c4b2c505568e769ac4ce5993b 100644 (file)
@@ -27,8 +27,8 @@
 #define CFLOAT _Complex double
 #define M_STRTO_NAN __strtod_nan
 
-#include <math-nan-payload-double.h>
 #include <libm-alias-double.h>
+#include <math-nan-payload-double.h>
 
 #ifndef declare_mgen_alias
 # define declare_mgen_alias(from, to) libm_alias_double (from, to)
index 7dd0b74e2425f73183648d36391f61c403491cc2..1f280950cd3acb5873c3542de63e2e486b59eee0 100644 (file)
@@ -30,8 +30,8 @@
    the double macro constants.  */
 #define M_MLIT(c) c
 
-#include <math-nan-payload-float.h>
 #include <libm-alias-float.h>
+#include <math-nan-payload-float.h>
 
 #ifndef declare_mgen_alias
 # define declare_mgen_alias(from, to) libm_alias_float (from, to)
index 6144bc047ad51d441b31f66bce623fe806a336d0..c36785fbe349b4801464ad1bfbd9571f3b8b1001 100644 (file)
@@ -29,8 +29,8 @@
 
 #define M_MLIT(c) c ## f128
 
-#include <math-nan-payload-float128.h>
 #include <libm-alias-float128.h>
+#include <math-nan-payload-float128.h>
 
 #ifndef declare_mgen_alias
 # define declare_mgen_alias(from, to) libm_alias_float128 (from, to)
index db411998eb320fd67d6981c2cdf5163a4d404c85..300dd18f94b4de86ff4570a7825e4fa22b68acf4 100644 (file)
@@ -27,8 +27,8 @@
 #define CFLOAT _Complex long double
 #define M_STRTO_NAN __strtold_nan
 
-#include <math-nan-payload-ldouble.h>
 #include <libm-alias-ldouble.h>
+#include <math-nan-payload-ldouble.h>
 
 #ifndef declare_mgen_alias
 # define declare_mgen_alias(from, to) libm_alias_ldouble (from, to)