Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <20030603211106.88672.qmail@web40605.mail.yahoo.com> Date: Tue, 3 Jun 2003 14:11:06 -0700 (PDT) From: Greg Fenton Subject: Re: Path separator To: cygwin AT cygwin DOT com In-Reply-To: <20030603173737.GC30250@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Christopher Faylor 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. So, again, is there a way to dynamically detect whether a binary is running within Cygwin (or maybe just from the BASH shell)? Thanks, greg_fenton. ===== Greg Fenton greg_fenton AT yahoo DOT com __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com -- 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/