Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 May 2000 12:11:13 -0400 (EDT)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Christian Weisgerber <naddy@unix-ag.uni-kl.de>
Cc:        freebsd-alpha@FreeBSD.ORG
Subject:   Re: #ifdef for Tru64?
Message-ID:  <14637.20550.567080.85372@grasshopper.cs.duke.edu>
In-Reply-To: <20000525180502.F69109@fettuccini.unix-ag.uni-kl.de>
References:  <20000525180502.F69109@fettuccini.unix-ag.uni-kl.de>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14637.20550.567080.85372>