delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/31/04:49:25

Date: Tue, 31 Jul 2001 11:50:11 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Will R <forkazoo2 AT aol DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Making OS-independent code little easier...
In-Reply-To: <20010730234957.21805.00001876@ng-dd1.aol.com>
Message-ID: <Pine.SUN.3.91.1010731114952.1042M-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 31 Jul 2001, Will R wrote:

> >#ifndef    __OS__H
> >#define    __OS_H
> >
> >#ifndef    __LINUX__
> >    #ifdef    LINUX
> >        #define    __LINUX__   
> 
> just one thing -- aren't double underscores not allowed in user
> land?

You are not allowed to _define_ macros which begin with two
underscores, but you are certainly allowed to _depend_ on them.

(Actually, ``are not allowed'' is not accurate here: the ANSI/ISO
standard says that those names are ``reserved for the
implementation''.  Which simply means that it's unsafe to define any
such names in application-level code: you might break the compiler,
the library, or your code.)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019