__STDC__ and non-conforming ANSI C compilers

Mike Coffin mike at arizona.edu
Wed Jan 18 08:37:47 AEST 1989


>From article <358 at masscomp.UUCP>, by ftw at masscomp.UUCP (Farrell Woods):
> If I invoke a conforming compiler with "cc -DFOO", but my program
> has #ifdef __STDC__ in it, how does this break conformance?

If "cc -DFOO" has the effect of providing of predefining FOO, then it
does not provide a conforming compilation environment: the program's
name space has been polluted.  So I assume that __STDC__ will not be
defined in such cases.  Do you think this should be an exception?  If
so, do you have any other exceptions in mind?
-- 
Mike Coffin				mike at arizona.edu
Univ. of Ariz. Dept. of Comp. Sci.	{allegra,cmcl2}!arizona!mike
Tucson, AZ  85721			(602)621-2858



More information about the Comp.std.c mailing list