From owner-freebsd-hackers Wed Jan 27 07:46:57 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA29922 for freebsd-hackers-outgoing; Wed, 27 Jan 1999 07:46:57 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [212.110.138.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA29873 for ; Wed, 27 Jan 1999 07:46:06 -0800 (PST) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.2/8.9.2/UCB) id RAA22944; Wed, 27 Jan 1999 17:37:30 +0200 (EET) Date: Wed, 27 Jan 1999 17:37:29 +0200 From: Ruslan Ermilov To: Jeroen Ruigrok/Asmodai Cc: FreeBSD Hackers Subject: Re: #define question Message-ID: <19990127173729.A19941@ucb.crimea.ua> Mail-Followup-To: Jeroen Ruigrok/Asmodai , FreeBSD Hackers References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.17i In-Reply-To: ; from Jeroen Ruigrok/Asmodai on Wed, Jan 27, 1999 at 04:19:51PM +0100 X-Operating-System: FreeBSD 2.2.8-STABLE i386 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jan 27, 1999 at 04:19:51PM +0100, Jeroen Ruigrok/Asmodai wrote: > Hi, > > simple question I'm sure... > > Do we have a systemwide variable to use in the form like this: > > #ifdef __FREEBSD__ > #include > #endif > > And with the variable I am referring to the __FREEBSD__ tag... > > thanks in advance, > Try to `cpp' this chunk: #ifdef __FreeBSD__ #warning "You're on FreeBSD" #endif BR, -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message