From: Florian Weimer Date: Thu, 17 May 2018 12:53:19 +0000 (+0200) Subject: math: Reverse include order in X-Git-Tag: glibc-2.28~270 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e363a91c21881be548bc40290e837aa202c1341f;p=thirdparty%2Fglibc.git math: Reverse include order in _Float128 is defined for certain compilers indirectly from , and (included from ) needs this definition. --- diff --git a/ChangeLog b/ChangeLog index 066c2134377..9b49b1c0f30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2018-05-17 Florian Weimer + + * sysdeps/generic/math-type-macros-double.h: Include + after . + * sysdeps/generic/math-type-macros-float.h: Include + after . + * sysdeps/generic/math-type-macros-float128.h: Include + after . + * sysdeps/generic/math-type-macros-ldouble.h: Include + after . + 2018-05-17 Andreas Schwab * resolv/res_send.c (__res_context_send): Don't set errno when diff --git a/sysdeps/generic/math-type-macros-double.h b/sysdeps/generic/math-type-macros-double.h index 156418221da..be5d94488f7 100644 --- a/sysdeps/generic/math-type-macros-double.h +++ b/sysdeps/generic/math-type-macros-double.h @@ -27,8 +27,8 @@ #define CFLOAT _Complex double #define M_STRTO_NAN __strtod_nan -#include #include +#include #ifndef declare_mgen_alias # define declare_mgen_alias(from, to) libm_alias_double (from, to) diff --git a/sysdeps/generic/math-type-macros-float.h b/sysdeps/generic/math-type-macros-float.h index 7dd0b74e242..1f280950cd3 100644 --- a/sysdeps/generic/math-type-macros-float.h +++ b/sysdeps/generic/math-type-macros-float.h @@ -30,8 +30,8 @@ the double macro constants. */ #define M_MLIT(c) c -#include #include +#include #ifndef declare_mgen_alias # define declare_mgen_alias(from, to) libm_alias_float (from, to) diff --git a/sysdeps/generic/math-type-macros-float128.h b/sysdeps/generic/math-type-macros-float128.h index 6144bc047ad..c36785fbe34 100644 --- a/sysdeps/generic/math-type-macros-float128.h +++ b/sysdeps/generic/math-type-macros-float128.h @@ -29,8 +29,8 @@ #define M_MLIT(c) c ## f128 -#include #include +#include #ifndef declare_mgen_alias # define declare_mgen_alias(from, to) libm_alias_float128 (from, to) diff --git a/sysdeps/generic/math-type-macros-ldouble.h b/sysdeps/generic/math-type-macros-ldouble.h index db411998eb3..300dd18f94b 100644 --- a/sysdeps/generic/math-type-macros-ldouble.h +++ b/sysdeps/generic/math-type-macros-ldouble.h @@ -27,8 +27,8 @@ #define CFLOAT _Complex long double #define M_STRTO_NAN __strtold_nan -#include #include +#include #ifndef declare_mgen_alias # define declare_mgen_alias(from, to) libm_alias_ldouble (from, to)