From owner-freebsd-alpha Thu May 25 9:11:52 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 56AD837C775 for ; Thu, 25 May 2000 09:11:44 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id MAA11990; Thu, 25 May 2000 12:11:43 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id MAA27581; Thu, 25 May 2000 12:11:13 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 25 May 2000 12:11:13 -0400 (EDT) To: Christian Weisgerber Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: #ifdef for Tru64? In-Reply-To: <20000525180502.F69109@fettuccini.unix-ag.uni-kl.de> References: <20000525180502.F69109@fettuccini.unix-ag.uni-kl.de> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14637.20550.567080.85372@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Christian Weisgerber writes: > Lately, I keep seeing ifdef's like > > #if defined(__alpha__) && !defined(linux) > > or some such, to bracket Tru64-specific code, which of course fails > immediately on FreeBSD/alpha. Isn't there a clean way to check for > Tru64 rather than by excluding Linux and *BSD? Both the compaq cc and gcc seem to define __osf__ as well as __alpha__ so how about #if defined(__alpha__) && defined(__osf__) Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message