Subject: Re: port-alpha/5586: port alpha does not define "unix"
To: Simon Burge <simonb@telstra.com.au>
From: Greg A. Woods <woods@most.weird.com>
List: tech-userlevel
Date: 06/16/1998 01:35:50
[ On Tue, June 16, 1998 at 10:41:40 (+1000), Simon Burge wrote: ]
> Subject: Re: port-alpha/5586: port alpha does not define "unix"
>
> Are symbols with two leading underscores OK?  For example, at the moment
> the pmax port needs an __ELF__ symbol defined for certain things to
> build properly.  (Yes, this could probably be fixed some way else, but
> having gcc define it is easiest.)

Yes.

from <URL:http://www.rdg.opengroup.org/onlinepubs/7908799/xsh/compilation.html>

     The following identifiers are reserved regardless of the inclusion
     of headers.
    1. All identifiers that begin with an underscore and either an
       upper-case letter or another underscore are always reserved for
       any use by the implementation.
    2. All identifiers that begin with an underscore are always reserved
       for use as identifiers with file scope in both the ordinary
       identifier and tag name spaces.
    3. All identifiers in the table below are reserved for use as
       identifiers with external linkage. Some of these identifiers do
       not appear in this specification, but are reserved for future use
       by the ISO C standard.
                        
-- 
							Greg A. Woods

+1 416 443-1734      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>