__STDC__ and non-conforming ANSI C compilers

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Jan 14 22:46:34 AEST 1989


In article <179 at smsdpg.uu.net> seg at smsdpg.uu.net (Scott Garfinkle) writes:
>You just can't say "#if __STDC_", you have to use #ifdef
>(or "#if defined()").

You got that exactly backward.

>In SVR4 cc, it *always* defines __STDC__, but sets it to 0 if you tell it you
>want "old-style C."

That's the same problem as was reported for MicroSoft.
SVR4 hasn't been released yet; perhaps they will fix this before release.



More information about the Comp.std.c mailing list