Date: Thu, 4 May 1995 12:29:04 +1000 From: Bruce Evans <bde@zeta.org.au> To: joerg_wunsch@uriah.heep.sax.de, patl@asimov.lashley.slip.netcom.com, rpt@miles.sso.loral.com Cc: hackers@FreeBSD.org Subject: Re: GNU cpp bug with pthreads Message-ID: <199505040229.MAA30923@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>Actually, if you really want to be safe, it should be: > #if defined(__STDC__) && (__STDC__ == 1) Nope. There are probably more compilers that don't support && than ones that don't default all undefined variables to 0. >There is (or was) at least one non-conforming compiler that set >__STDC__ to 2. (And at least one that would complain if you >tried '(__STDC__ == 1)' when __STDC__ hasn't been set at all...) It's very non-conforming :-). Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505040229.MAA30923>