From owner-freebsd-questions Mon Dec 9 03:19:11 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id DAA29353 for questions-outgoing; Mon, 9 Dec 1996 03:19:11 -0800 (PST) Received: from friley216.res.iastate.edu (friley216.res.iastate.edu [129.186.78.216]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id DAA29346 for ; Mon, 9 Dec 1996 03:19:08 -0800 (PST) Received: from friley216.res.iastate.edu (loopback [127.0.0.1]) by friley216.res.iastate.edu (8.8.3/8.7.3) with ESMTP id FAA04969; Mon, 9 Dec 1996 05:18:06 -0600 (CST) Message-Id: <199612091118.FAA04969@friley216.res.iastate.edu> X-Mailer: exmh version 1.6.9 8/22/96 To: tjb@fnbc.com cc: FreeBSD Questions Mailgroup Subject: Re: FreeBSD porting -- distinguishing CPP definition? In-reply-to: Your message of Mon, 09 Dec 1996 10:43:01 +0000. <4107.9612091043@lia33.fnbc.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 09 Dec 1996 05:18:06 -0600 From: Chris Csanady Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >Hi, > >I'm trying to port some software to FreeBSD 2.1.5 (GNUstep -- anyone else >working on it?) and I've found a few areas where I need to change the code. >Is there a distinguishing CPP definition I should use? After looking >at the output of cc -v, I'm using > >#if defined (__FreeBSD__) > >but is there an accepted standard style? You may want to take a look at section 4.2.6 of the freebsd handbook. There are also some notes in there which you might find useful, even if you are not specifically producing something for the ports collection. --Chris Csanady >Thanks in advance, > >Tim