]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define __STDC_WANT_IEC_60559_TYPES_EXT__ in tst-strtod-round-skeleton.c.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 24 Nov 2017 21:42:55 +0000 (21:42 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 24 Nov 2017 21:42:55 +0000 (21:42 +0000)
The tst-strtod-round-skeleton.c conditionals relating to handling of
_Float64x require associated <float.h> macros, which requires
__STDC_WANT_IEC_60559_TYPES_EXT__ to be defined before <float.h> is
included if _Float64x is supported.  This patch adds the necessary
definition.

Tested for x86_64, including in conjunction with _Float64x support
patches.

* stdlib/tst-strtod-round-skeleton.c
(__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
headers.

ChangeLog
stdlib/tst-strtod-round-skeleton.c

index 2a65383f12fdfe3ab7ac824b10e33b225d1f7591..be9ed44d83276a4b0bd140738bfd17900283e573 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
 
+       * stdlib/tst-strtod-round-skeleton.c
+       (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
+       headers.
+
        * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
        for combinations of long double with _Float64 and _Float64x.
 
index 763c9ce983baeac47b1e85c8ce30c52cf9d857be..05d8a4c303dc1db74cce2833ba28d3acf2c8539e 100644 (file)
@@ -20,6 +20,7 @@
 /* Defining _LIBC_TEST ensures long double math functions are
    declared in the headers.  */
 #define _LIBC_TEST 1
+#define __STDC_WANT_IEC_60559_TYPES_EXT__
 #include <fenv.h>
 #include <float.h>
 #include <math.h>