about summary refs log tree commit diff
path: root/stdlib/tst-strtod-round-skeleton.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-11-24 21:42:55 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-11-24 21:42:55 +0000
commit46453c3cdad9575f264a49f003a2a9f2847708c8 (patch)
treecef036f008a408e285688068bbfd48c4bd0919e7 /stdlib/tst-strtod-round-skeleton.c
parent01e659e71123290472b691ff94e7ba10e1f25031 (diff)
downloadglibc-46453c3cdad9575f264a49f003a2a9f2847708c8.tar.gz
glibc-46453c3cdad9575f264a49f003a2a9f2847708c8.tar.xz
glibc-46453c3cdad9575f264a49f003a2a9f2847708c8.zip
Define __STDC_WANT_IEC_60559_TYPES_EXT__ in tst-strtod-round-skeleton.c.
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.
Diffstat (limited to 'stdlib/tst-strtod-round-skeleton.c')
-rw-r--r--stdlib/tst-strtod-round-skeleton.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/tst-strtod-round-skeleton.c b/stdlib/tst-strtod-round-skeleton.c
index 763c9ce983..05d8a4c303 100644
--- a/stdlib/tst-strtod-round-skeleton.c
+++ b/stdlib/tst-strtod-round-skeleton.c
@@ -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>