www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/03/17:29:15

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
Message-ID: <005801c32a16$fd886f50$78d96f83@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "Greg Fenton" <greg_fenton AT yahoo DOT com>, <cygwin AT cygwin DOT com>
References: <20030603211106 DOT 88672 DOT qmail AT web40605 DOT mail DOT yahoo DOT com>
Subject: Re: Path separator
Date: Tue, 3 Jun 2003 22:27:52 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Cam-ScannerAdmin: mail-scanner-support AT ucs DOT cam DOT ac DOT uk
X-Cam-AntiVirus: Not scanned
X-Cam-SpamDetails:

Greg Fenton wrote:
> --- Christopher Faylor <cgf-rcm AT cygwin DOT com> wrote:
>>
>> You shouldn't be defining _WIN32 for cygwin.  Cygwin gcc doesn't
>> define this by default.
>
>
> Unfortunately, autoconf is doing this for us.  It is picking up
> windows.h from /usr/include/w32api, which in turn includes windef.h.
>
> Besides, we *do* want to convert "/" to "\" when running in the native
> win32 environment, so the #ifdef _WIN32 block is fine.  Its just when
> we are in Cygwin that we'd like to skip over that function (or change
> its behaviour).  So its a run-time and not compile-time setting I'm
> looking for.

No: Cygwin != _WIN32.

You may be looking for a run-time setting, but no such thing exists.

A native/Cygwin dual-mode binary sounds like a clever idea, but AFAIK has
never been done before, and is probably ridiculously infeasible on the
balance of work/benefit.

You should improve your configure.in/ac to not pull in windows.h unless you
really want it.


Max.


--
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