[Bug libc/15720] stdc-predef.h wrongly defines __STDC_IEC_559_COMPLEX__

bugdal at aerifal dot cx sourceware-bugzilla@sourceware.org
Sun Jul 7 17:07:00 GMT 2013


http://sourceware.org/bugzilla/show_bug.cgi?id=15720

--- Comment #4 from Rich Felker <bugdal at aerifal dot cx> ---
On Sun, Jul 07, 2013 at 04:21:04PM +0000, joseph at codesourcery dot com wrote:
> Not much good.  You can't use __STDC_VERSION__ in practice to tell what 
> level of C11 features is supported,

Combined with the other new __STDC_NO_*__ macros introduced in C11,
you should be able to determine which features are available.

> can't use __STDC__ to tell if 
> trigraphs are supported,

This is a bug in GCC, but anybody using trigraphs intentionally or
otherwise should just be taken out back anyway...

Anyway, the definition of the __STDC_IEC_559_COMPLEX__ macro is just
misleading and wrong, so I think this should be fixed. Defining it
does not provide anything of value, and does cause problems for
applications.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list