From owner-freebsd-hackers Mon Feb 3 05:32:55 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA28362 for hackers-outgoing; Mon, 3 Feb 1997 05:32:55 -0800 (PST) Received: from po2.glue.umd.edu (root@po2.glue.umd.edu [129.2.128.45]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA28357 for ; Mon, 3 Feb 1997 05:32:52 -0800 (PST) Received: from gilligan.eng.umd.edu (gilligan.eng.umd.edu [129.2.103.21]) by po2.glue.umd.edu (8.8.5/8.7.3) with ESMTP id IAA09871 for ; Mon, 3 Feb 1997 08:32:49 -0500 (EST) Received: from localhost (chuckr@localhost) by gilligan.eng.umd.edu (8.8.5/8.7.3) with SMTP id IAA03459 for ; Mon, 3 Feb 1997 08:32:48 -0500 (EST) X-Authentication-Warning: gilligan.eng.umd.edu: chuckr owned process doing -bs Date: Mon, 3 Feb 1997 08:32:48 -0500 (EST) From: Chuck Robey X-Sender: chuckr@gilligan.eng.umd.edu To: FreeBSD-Hackers Subject: Re: conditionally including Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk [reposted -- my mailer couldn't handle Thomas David Rivers ucbvax address] On Sun, 2 Feb 1997, Thomas David Rivers wrote: > > > > Sorry to have to bring this back to light... > > I was under the impression that we had agreed that > > "#if (defined(__unix__) || defined(unix))" was the best way to > > conditionally include . However, this email from Chuck, > > implies that this is a Bad Thing. > > Unfortunately the symbols: > unix > FreeBSD > NetBSD > OpenBSD > > violate the user's name space. For example, I have programs > that define some of these on the command line. If these were defined > elsewhere things would break. [Of course, such things do break > on other hosts; e.g. SunOS 4.x defines "unix".] > > I would suggest using: > __unix__ > __FreeBSD__ > __NetBSD__ > __OpenBSD__ > > as identifiers beginning with "_" are reserved (per ANSI) for the > implementation. __unix__ seems unneeded, but __FreeBSD__, __NetBSD__, and __OpenBSD__ are already used successfully by X11 (see /usr/X11R6/lib/X11/Imake.cf) and I think they'll work fine for us. We can add specific additional names, one by one, as we get specific requests from other systems. I'd like this. ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------