From owner-freebsd-hackers Wed Jan 27 08:33:23 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA05754 for freebsd-hackers-outgoing; Wed, 27 Jan 1999 08:33:23 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp05.wxs.nl (smtp05.wxs.nl [195.121.6.57]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA05743 for ; Wed, 27 Jan 1999 08:33:20 -0800 (PST) (envelope-from asmodai@wxs.nl) Received: from daemon.ninth-circle.org ([195.121.56.175]) by smtp05.wxs.nl (Netscape Messaging Server 3.61) with ESMTP id AAA1FB7; Wed, 27 Jan 1999 17:33:18 +0100 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <36AF3EEE.D9B6C3C0@kira.team400.ie> Date: Wed, 27 Jan 1999 17:41:48 +0100 (CET) Organization: Ninth Circle Enterprises From: Jeroen Ruigrok/Asmodai To: nsmart@kira.team400.ie Subject: Re: #define question Cc: FreeBSD Hackers , Ruslan Ermilov Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 27-Jan-99 nsmart@kira.team400.ie wrote: > >> Try to `cpp' this chunk: >> >> #ifdef __FreeBSD__ >> #warning "You're on FreeBSD" >> #endif > > This program is hopelessly buggy, try this version: > >#ifndef __FreeBSD__ >#warning "You're not on FreeBSD!" >#endif The latter being more exclusive and thus more able to give the correct answer I guess? --- Jeroen Ruigrok van der Werven It's a Dance of Energy, asmodai(at)wxs.nl when the Mind goes Binary... Network/Security Specialist BSD & picoBSD: The Power to Serve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message