From owner-freebsd-hackers Mon May 15 14:32:21 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id OAA17100 for hackers-outgoing; Mon, 15 May 1995 14:32:21 -0700 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id OAA17094 for ; Mon, 15 May 1995 14:32:19 -0700 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA11133; Mon, 15 May 95 15:25:04 MDT From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9505152125.AA11133@cs.weber.edu> Subject: Re: GNU cpp bug with pthreads To: imp@village.org (Warner Losh) Date: Mon, 15 May 95 15:25:03 MDT Cc: bde@zeta.org.au, j@uriah.heep.sax.de, rpt@miles.sso.loral.com, hackers@FreeBSD.org In-Reply-To: <199505151925.NAA05977@rover.village.org> from "Warner Losh" at May 15, 95 01:25:07 pm X-Mailer: ELM [version 2.4dev PL52] Sender: hackers-owner@FreeBSD.org Precedence: bulk > > : The Sun "transitional compiler" #defines __STDC__ as 0 in non-ANSI mode > : and as 1 in ANSI mode. > > I assume you mean the unbundled compiler in some sort of traditional > mode. cc on sun 4.1.3 at least doesn't define __STDC__ to be > anything. I dunno. It's the 4.1.3_U1 compiler that Sun is calling the transitional compiler (presumably transitioning from K&R to ANSI). Unless you specifically ask it to invoke in a traditional mode, it will by default invoke with __STDC__ defined as 0. If the Sun example isn't sufficient, the AIX 3.2 compiler (with whatever numerous patchtapes IBM sends) will define __STDC__ as 2 if -ansi is used. Anyone know how to make a Sun compiler spit out its version information? Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.