*BSD News Article 52659


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!oleane!jussieu.fr!ensta!itesec!sidhe.frmug.fr.net!not-for-mail
From: roberto@keltia.Freenix.FR (Ollivier Robert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: two q's: getopt/POSIX and predefined macros
Date: 13 Oct 1995 12:46:06 GMT
Organization: Herve Schauer Consultants
Lines: 15
Message-ID: <45ln2e$qkl@sidhe.hsc-sec.fr>
References: <hwploqy3q1j.fsf@bio-5.bsd.uchicago.edu>
Reply-To: roberto@hsc.fr.net (Ollivier Robert)
NNTP-Posting-Host: sidhe.hsc-sec.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

In article <hwploqy3q1j.fsf@bio-5.bsd.uchicago.edu>,
Tim Pierce  <twpierce@midway.uchicago.edu> wrote:
>   * My poking around with cpp suggests that it predefines really
>     only one macro identifying the OS: `__FreeBSD__'.  Is there
>     a reason why others aren't defined by default -- `bsd', `BSD',
>     `__bsd__', etc?  I was under the impression that that was
>     traditional for Berkeley systems, and it seems as though it
>     would be useful to have.

BSD is defined in <sys/param.h> which is traditionnal I think.

[ Cc: to Tim ]
-- 
Ollivier ROBERT  -=-=-  FreeBSD 2.x FAQ maintainer -=-=-  roberto@freebsd.org
-=-=-=-=-=- Support The Free UNIX Systems !  FreeBSD Linux NetBSD -=-=-=-=-=-