Subject: Re: __sparc64__ defined by preprocessor?
To: john heasley <heas@shrubbery.net>
From: Simon Burge <simonb@wasabisystems.com>
List: port-sparc64
Date: 05/21/2001 04:27:09
john heasley wrote:
> foad [37] gcc -E -
> #ifdef __sparc64__
> foo
> #endif
> # 1 ""
>
> foo
Just a "FWIW", a test for predefined macros is:
thoreau:~ 671> gcc -dM -E - < /dev/null
#define __NetBSD__ 1
#define __KPRINTF_ATTRIBUTE__ 1
#define __GNUC_MINOR__ 91
#define __alpha__ 1
#define __GNUC__ 2
#define __ELF__ 1
#define __alpha 1
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD CDs, Support and Service: http://www.wasabisystems.com/