__STDC__ defined as zero a problem

Arthur David Olson ado at elsie.UUCP
Tue Jul 11 07:21:16 AEST 1989


In article <942 at alzabo.UUCP>, tris at alzabo.UUCP (Tris Orendorff) writes:
>      I believe that people actually want to say:
> #ifdef __STDC__
> and not
> #if __STDC__

What people want to say is
	#if __STDC__ - 0
which will work if __STDC__ is undefined.
It will also work on outre systems where __STDC__ is defined to be 0.
-- 
	Arthur David Olson    ado at alw.nih.gov    ADO is a trademark of Ampex.



More information about the Comp.lang.c mailing list