]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix gen-tgmath-tests.py output for GCC 7 <float.h>.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 28 Jun 2017 19:42:14 +0000 (19:42 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 28 Jun 2017 19:42:14 +0000 (19:42 +0000)
* math/gen-tgmath-tests.py (Tests.__init__): Define
__STDC_WANT_IEC_60559_TYPES_EXT__ at start of generated file.

ChangeLog
math/gen-tgmath-tests.py

index 8334e48c136d49be80ad73c16fb70e6220eee1d7..56794708e71c1f8ed850357b80ae8dc27f519f0c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-06-28  Joseph Myers  <joseph@codesourcery.com>
 
+       * math/gen-tgmath-tests.py (Tests.__init__): Define
+       __STDC_WANT_IEC_60559_TYPES_EXT__ at start of generated file.
+
        * math/tgmath.h: Include <bits/libc-header-start.h> and
        <bits/floatn.h>.
        (__TGMATH_F128): New macro.
index 04492cd3d507f37a8680fe4ce1a9da6aa275c54c..0c548ef9f9e575fa19820184b1f25fae2b2fbcc8 100755 (executable)
@@ -293,7 +293,8 @@ class Tests(object):
 
     def __init__(self):
         """Initialize a Tests object."""
-        self.header_list = ['#include <float.h>\n'
+        self.header_list = ['#define __STDC_WANT_IEC_60559_TYPES_EXT__\n'
+                            '#include <float.h>\n'
                             '#include <stdbool.h>\n'
                             '#include <stdint.h>\n'
                             '#include <stdio.h>\n'