From owner-freebsd-hackers Wed May 3 19:36:27 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA13848 for hackers-outgoing; Wed, 3 May 1995 19:36:27 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id TAA13821 for ; Wed, 3 May 1995 19:35:59 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id MAA30923; Thu, 4 May 1995 12:29:04 +1000 Date: Thu, 4 May 1995 12:29:04 +1000 From: Bruce Evans Message-Id: <199505040229.MAA30923@godzilla.zeta.org.au> To: joerg_wunsch@uriah.heep.sax.de, patl@asimov.lashley.slip.netcom.com, rpt@miles.sso.loral.com Subject: Re: GNU cpp bug with pthreads Cc: hackers@FreeBSD.org Sender: hackers-owner@FreeBSD.org Precedence: bulk >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