This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH v3 1/7] Include libc-header-start.h in include/float.h
- From: "Gabriel F. T. Gomes" <gftg at linux dot vnet dot ibm dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 23 Jun 2017 09:33:20 -0300
- Subject: [PATCH v3 1/7] Include libc-header-start.h in include/float.h
- Authentication-results: sourceware.org; auth=none
- References: <1498221206-26864-1-git-send-email-gftg@linux.vnet.ibm.com>
New since v2:
- This patch has been split from the last patch in this set, because it
isn't powerpc64le-specific.
-- 8< --
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.
---
include/float.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/float.h b/include/float.h
index a5b357d..736868f 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
--
2.4.11