diff --git a/ChangeLog b/ChangeLog index 6adf580e7b..9f6a60c3f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2017-05-09 Paul E. Murphy + Gabriel F. T. Gomes + + * 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. + 2017-05-09 Paul E. Murphy Gabriel F. T. Gomes diff --git a/bits/libc-header-start.h b/bits/libc-header-start.h index 860225d7ca..0ce16e2532 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 diff --git a/include/features.h b/include/features.h index 7de4089ed3..972cbd2b5d 100644 --- a/include/features.h +++ b/include/features.h @@ -30,6 +30,8 @@ Extensions to ISO C11 from TS 18661-1:2014. __STDC_WANT_IEC_60559_FUNCS_EXT__ Extensions to ISO C11 from TS 18661-4:2015. + __STDC_WANT_IEC_60559_TYPES_EXT__ + Extensions to ISO C11 from TS 18661-3:2015. _POSIX_SOURCE IEEE Std 1003.1. _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; diff --git a/manual/creature.texi b/manual/creature.texi index 5048886292..23218bbac3 100644 --- a/manual/creature.texi +++ b/manual/creature.texi @@ -191,6 +191,15 @@ enabled. Only some of the features from this TS are supported by @theglibc{}. @end defvr +@comment (none) +@comment ISO +@defvr Macro __STDC_WANT_IEC_60559_TYPES_EXT__ +If you define this macro, features from ISO/IEC TS 18661-3:2015 +(Floating-point extensions for C: Interchange and extended types) are +enabled. Only some of the features from this TS are supported by +@theglibc{}. +@end defvr + @comment (none) @comment GNU @defvr Macro _GNU_SOURCE