Date: Tue, 31 Jul 2001 11:50:11 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Will R 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.)