aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2017-06-22 09:45:32 -0300
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2017-06-23 10:30:04 -0300
commit9f0170af26fa3643d9d4cd28d484b4e2d28c6cd5 (patch)
tree1fd709c88a565aeaf61ff8ce53518e6a0df405dc
parentc340290de867e02d37215df139fac0a7d9640704 (diff)
downloadglibc-9f0170af26fa3643d9d4cd28d484b4e2d28c6cd5.tar
glibc-9f0170af26fa3643d9d4cd28d484b4e2d28c6cd5.tar.gz
glibc-9f0170af26fa3643d9d4cd28d484b4e2d28c6cd5.tar.bz2
glibc-9f0170af26fa3643d9d4cd28d484b4e2d28c6cd5.zip
Include libc-header-start.h in include/float.h
The file include/float.h uses the macro __GLIBC_USE to test for TS 18661-3 support. Such macro is provided by bits/libc-header-start.h, so include it to get the definition. Tested for powerpc64le and s390x. * include/float.h: Include libc-header-start.h to get the definition of __GLIBC_USE.
-rw-r--r--ChangeLog5
-rw-r--r--include/float.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c3e6ff78b..9b7a655987 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-23 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
+
+ * include/float.h: Include libc-header-start.h to get the
+ definition of __GLIBC_USE.
+
2017-06-23 Paul A. Clarke <pc@us.ibm.com>
* sysdeps/ieee754/flt-32/e_powf.c: Optimized implementation utilizing
diff --git a/include/float.h b/include/float.h
index a5b357dc96..736868fd52 100644
--- a/include/float.h
+++ b/include/float.h
@@ -1,6 +1,9 @@
#ifndef _LIBC_FLOAT_H
#define _LIBC_FLOAT_H
+#define __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION
+#include <bits/libc-header-start.h>
+
#ifndef _ISOMAC
# define __STDC_WANT_IEC_60559_TYPES_EXT__
#endif