Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Dec 1996 05:18:06 -0600
From:      Chris Csanady <ccsanady@friley216.res.iastate.edu>
To:        tjb@fnbc.com
Cc:        FreeBSD Questions Mailgroup <freebsd-questions@freebsd.org>
Subject:   Re: FreeBSD porting -- distinguishing CPP definition? 
Message-ID:  <199612091118.FAA04969@friley216.res.iastate.edu>
In-Reply-To: Your message of Mon, 09 Dec 1996 10:43:01 %2B0000. <4107.9612091043@lia33.fnbc.co.uk> 

next in thread | previous in thread | raw e-mail | index | archive | help

>
>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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612091118.FAA04969>