From owner-freebsd-questions Tue May 7 14:52:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from TheWorld.com (pcls2.std.com [199.172.62.104]) by hub.freebsd.org (Postfix) with ESMTP id B775037B406 for ; Tue, 7 May 2002 14:52:53 -0700 (PDT) Received: from shell.TheWorld.com (root@shell01.TheWorld.com [199.172.62.241]) by TheWorld.com (8.9.3/8.9.3) with ESMTP id RAA13453; Tue, 7 May 2002 17:52:51 -0400 Received: (from kwc@localhost) by shell.TheWorld.com (8.9.3/8.9.3) id RAA1412371; Tue, 7 May 2002 17:52:50 -0400 (EDT) Date: Tue, 7 May 2002 17:52:50 -0400 (EDT) From: Kenneth W Cochran Message-Id: <200205072152.RAA1412371@shell.TheWorld.com> To: freebsd-questions@freebsd.org Subject: Recognizing FreeBSD in conditional compilation Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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