Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 May 2002 17:52:50 -0400 (EDT)
From:      Kenneth W Cochran <kwc@TheWorld.com>
To:        freebsd-questions@freebsd.org
Subject:   Recognizing FreeBSD in conditional compilation
Message-ID:  <200205072152.RAA1412371@shell.TheWorld.com>

next in thread | raw e-mail | index | archive | help
Hello:

If I'm writing a C (or C++ ?) program, how can I test for
building on FreeBSD and/or the FreeBSD version?

I found "#if defined(__FreeBSD__) ..." in a program, but where
would I find such manifest constants "officially defined?"

Thanks,

-kc

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?200205072152.RAA1412371>