__STDC__ and non-conforming ANSI C compilers
Doug Gwyn
gwyn at smoke.BRL.MIL
Sat Jan 21 02:17:35 AEST 1989
In article <398 at jhereg.Jhereg.MN.ORG> mark at jhereg.MN.ORG (Mark H. Colburn) writes:
>By the same token, the user could specify -D__STDC__ on the command line
>to the C compiler. That would not necessarily make the compiler being
>used an ANSI C conforming compiler...
In fact, this seems like a good way for users on nonconforming
implementations that have a lot of so-called "ANSI C" features
to avail himself of them. It's his responsibility for limiting
his program's use of __STDC__ to access just features the
nonconforming implementation actually provides. That's much
better than the implementation unconditionally pretending to be
something it's not.
More information about the Comp.std.c
mailing list