Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  9 Dec 96 10:43:01 GMT
From:      Tim Bissell <tjb@fnbc.co.uk>
To:        FreeBSD Questions Mailgroup <freebsd-questions@freebsd.org>
Subject:   FreeBSD porting -- distinguishing CPP definition?
Message-ID:  <4107.9612091043@lia33.fnbc.co.uk>
References:  <Pine.BSF.3.91.961208104317.178A-100000@rlyon.mynet.au>

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?

Thanks in advance,

Tim



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