delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/24/16:00:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 24 Sep 2003 15:59:46 -0400
From: Christopher Faylor <cgf-rcm AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: __cygwin__ ++ (RE: getuid() and root)
Message-ID: <20030924195946.GA6514@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20030924073944 DOT GC9981 AT cygbert DOT vinschen DOT de> <NGBBLLIAMFLGJEOAJCCEEEIEDEAA DOT garbage_collector AT telia DOT com>
Mime-Version: 1.0
In-Reply-To: <NGBBLLIAMFLGJEOAJCCEEEIEDEAA.garbage_collector@telia.com>
User-Agent: Mutt/1.4.1i

On Wed, Sep 24, 2003 at 09:21:38PM +0200, Hannu E K Nevalainen (garbage mail) wrote:
>> From: Corinna Vinschen
>
>> On Tue, Sep 23, 2003 at 08:41:59PM +0200, Hannu E K Nevalainen
>> (garbage mail) wrote:
>> > Current status as I've understood it is; As -mno-cygwin _ISN'T_ used
>> >  __CYGWIN__ and __CYGWIN32__ both will be #define 'd.
>> >
>> > Now the big Q: What is the difference between those?
>>
>> __CYGWIN__ is the correct one.  __CYGWIN32__ was the predecessor
>> (pre french revolution).  Kept for backward compatibility.
>>
>> Corinna
>
>Thanks. The use of __CYGWIN__ is clear and sound.
>I've been thinking that there is a need for a __NOCYGWIN__  define too (to
>be set when -mno-cygwin is used).
>Any thoughts about this? Good(tm) or Bad(tm)?

Bad.

Rather than cast around in the dark here, you should be investigating gcc
options that tell you what is available.  I just did this and came up
with this incantation:

	gcc -dM -E -xc /dev/null

There's probably an easier way to do this (and if there is, there will
be five responses to this message pointing it out) but try the above
command.  Then try:

	gcc -mno-cygwin -dM -E -xc /dev/null

and compare/contrast the results.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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