]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Include libc-header-start.h in include/float.h
authorGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Thu, 22 Jun 2017 12:45:32 +0000 (09:45 -0300)
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Fri, 23 Jun 2017 13:30:04 +0000 (10:30 -0300)
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.

ChangeLog
include/float.h

index 1c3e6ff78bed9717f7e596bd957db507f0306e1d..9b7a655987782e1b15ffd691179c072ee2a496c9 100644 (file)
--- 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
index a5b357dc96611d41624145c7f14c9c2d38ed655e..736868fd52c2f4dbef74d5272b8d8acb599e054c 100644 (file)
@@ -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