aboutsummaryrefslogtreecommitdiff
path: root/bits
diff options
context:
space:
mode:
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-07-20 12:14:21 -0500
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2017-05-09 11:40:28 -0300
commit4fc12f0eda596b12fb27fb39ea4ac5e68ac4170e (patch)
treeff43216e8c4233532b72879074e8d784acc22de3 /bits
parent26265c3bce73ca85a4b6976ba62dc2111b46e414 (diff)
downloadglibc-4fc12f0eda596b12fb27fb39ea4ac5e68ac4170e.zip
glibc-4fc12f0eda596b12fb27fb39ea4ac5e68ac4170e.tar.gz
glibc-4fc12f0eda596b12fb27fb39ea4ac5e68ac4170e.tar.bz2
Add support for testing __STDC_WANT_IEC_60559_TYPES_EXT__
This macro is defined by TS 18661-3 for supporting the _FloatN and _FloatNx types, as well as the functions suffixed with fN. * bits/libc-header-start.h: (__GLIBC_USE_IEC_60559_TYPES_EXT): New macro. * include/features.h: Describe __STDC_WANT_IEC_60559_TYPES_EXT__. * manual/creature.texi: Likewise.
Diffstat (limited to 'bits')
-rw-r--r--bits/libc-header-start.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/bits/libc-header-start.h b/bits/libc-header-start.h
index 860225d..0ce16e2 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:2015 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