This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH v2 3/8] Add support for testing __STDC_WANT_IEC_60559_TYPES_EXT__
- From: "Gabriel F. T. Gomes" <gftg at linux dot vnet dot ibm dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 28 Apr 2017 18:34:35 -0300
- Subject: [PATCH v2 3/8] Add support for testing __STDC_WANT_IEC_60559_TYPES_EXT__
- Authentication-results: sourceware.org; auth=none
- References: <1493415280-30534-1-git-send-email-gftg@linux.vnet.ibm.com>
From: "Paul E. Murphy" <murphyp@linux.vnet.ibm.com>
This macro is defined by TS 18661-3 for supporting the _FloatN and
_FloatNx types, as well as the functions suffixed with fN.
2017-02-23 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
* bits/libc-header-start.h:
(__GLIBC_USE_IEC_60559_TYPES_EXT): New macro.
---
bits/libc-header-start.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/bits/libc-header-start.h b/bits/libc-header-start.h
index 860225d..e1390e5 100644
--- a/bits/libc-header-start.h
+++ b/bits/libc-header-start.h
@@ -59,3 +59,12 @@
#else
# define __GLIBC_USE_IEC_60559_FUNCS_EXT 0
#endif
+
+/* ISO/IEC TS 18661-3:2014 defines the
+ __STDC_WANT_IEC_60559_TYPES_EXT__ macro. */
+#undef __GLIBC_USE_IEC_60559_TYPES_EXT
+#if defined __USE_GNU || defined __STDC_WANT_IEC_60559_TYPES_EXT__
+# define __GLIBC_USE_IEC_60559_TYPES_EXT 1
+#else
+# define __GLIBC_USE_IEC_60559_TYPES_EXT 0
+#endif
--
2.4.11