Subject: Re: __unix__ macro
To: None <netbsd-users@netbsd.org>
From: Mike Parson <mparson@bl.org>
List: netbsd-users
Date: 08/26/2002 10:31:34
On Mon, Aug 26, 2002 at 03:09:14PM +0200, Martin Husemann wrote:
> > While trying to compile OpenCM, I saw that __unix__ was not defined during
> > compilation...
>
> This has been beaten to death, google the archives for tons of previous
> discussion on this. In short: any program relying on any particular meaning
> for __unix__ is broken - fix it.
A quick way to see what are the default defines:
gcc -E -dM - </dev/null
gives (on my 1.4.2/i386 box):
#define __i386__ 1
#define __NetBSD__ 1
#define __i386 1
#define __KPRINTF_ATTRIBUTE__ 1
#define __GNUC_MINOR__ 91
#define i386 1
#define __GNUC__ 2
--
Michael Parson
mparson@bl.org