Subject: Re: __unix__ macro
To: None <netbsd-users@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-users
Date: 08/26/2002 16:29:50
[ On Monday, August 26, 2002 at 08:21:04 (-0700), Jason R Thorpe wrote: ]
> Subject: Re: __unix__ macro
>
> Since NetBSD does not do -Dunix (since doing so is wrong in ANSI and
> ISO C), it also does not do -D__unix__.

Wouldn't that only be true (violation of ANSI/ISO C) be true if
ANSI_C_SOURCE were also defined?  I.e. if the program asked to have its
namespace protected?

> Any program which relies on "unix" or "__unix__" being defined is really
> broken, since there are quite a number of Unix systems which do NOT define
> those macros.

Arguably that's what those programs are trying to find out!  ;-)

-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>