From owner-freebsd-hackers Wed May 3 08:59:03 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id IAA02598 for hackers-outgoing; Wed, 3 May 1995 08:59:03 -0700 Received: from mail4.netcom.com (root@mail4.netcom.com [192.100.81.134]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id IAA02591 for ; Wed, 3 May 1995 08:59:00 -0700 From: patl@asimov.lashley.slip.netcom.com Received: from lashley.slip.netcom.com by mail4.netcom.com (8.6.12/Netcom) id IAA23850; Wed, 3 May 1995 08:56:49 -0700 Received: by lashley.slip.netcom.com (5.x/SMI-SVR4) id AA00447; Wed, 3 May 1995 09:01:02 -0700 Date: Wed, 3 May 1995 09:01:02 -0700 Message-Id: <9505031601.AA00447@lashley.slip.netcom.com> To: rpt@miles.sso.loral.com, joerg_wunsch@uriah.heep.sax.de Subject: Re: GNU cpp bug with pthreads Cc: hackers@FreeBSD.org X-Sun-Charset: US-ASCII Sender: hackers-owner@FreeBSD.org Precedence: bulk |> > #ifdef __STDC__ |> |> Note: this should be ``#if __STDC__'' anyway. Some preprocessors do |> define this macro to 0 when running in `traditional' mode. ANSI says |> it is ``the constant 1'' in a standard-conforming environment. Actually, if you really want to be safe, it should be: #if defined(__STDC__) && (__STDC__ == 1) 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...) -Pat