Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 May 2002 18:28:55 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Kenneth W Cochran <kwc@TheWorld.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Recognizing FreeBSD in conditional compilation
Message-ID:  <20020507182855.B61098@xor.obsecurity.org>
In-Reply-To: <200205072152.RAA1412371@shell.TheWorld.com>; from kwc@TheWorld.com on Tue, May 07, 2002 at 05:52:50PM -0400
References:  <200205072152.RAA1412371@shell.TheWorld.com>

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

--uQr8t48UFsdbeI+V
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 07, 2002 at 05:52:50PM -0400, Kenneth W Cochran wrote:
> Hello:
>=20
> If I'm writing a C (or C++ ?) program, how can I test for
> building on FreeBSD and/or the FreeBSD version?
>=20
> I found "#if defined(__FreeBSD__) ..." in a program, but where
> would I find such manifest constants "officially defined?"

See the Porter's Handbook.

Kris

--uQr8t48UFsdbeI+V
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE82H9WWry0BWjoQKURAkmqAJ4+wyaa0dMrmZK8aZgkoFPAtL7u1QCg00ig
tMe+oEuYTTZzkW83uZ3gw+o=
=3PXz
-----END PGP SIGNATURE-----

--uQr8t48UFsdbeI+V--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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