Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Apparently-From: <earnie?boyd@yahoo.com>
Message-ID: <3A59FA3B.3AA71424@yahoo.com>
Date: Mon, 08 Jan 2001 12:34:51 -0500
From: Earnie Boyd <earnie_boyd@yahoo.com>
Reply-To: perl5-porters@perl.org, cygwin@cygwin.com
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Benjamin Riefenstahl <Benjamin.Riefenstahl@ision.net>
CC: perl5-porters@perl.org, cygwin@sources.redhat.com
Subject: Re: perl-5.6.1 DB_file support
References: <3A5605B3.AAC25D7F@sbox.tu-graz.ac.at> <3A59255F.85918DE8@sbox.tu-graz.ac.at> <3A5966E5.735999FE@ece.gatech.edu> <3A59C529.4342E4D4@yahoo.com> <un1d2aybf.fsf@work1.work.maz.net> <3A59DF65.353364C2@yahoo.com> <u8zomatyp.fsf@work1.work.maz.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Benjamin Riefenstahl wrote:
> 
> > Benjamin Riefenstahl wrote:
> > > MAX_PATH OTOH seems to be an MS Windows invention and is not in any
> > > standard, or is it?
> 
> Earnie Boyd <earnie_boyd@yahoo.com> writes:
> > Well, it is a MS Windows standard.
> 
> Than it should be in the MS Windows headers (which it is, I suppose. I
> haven't MingW installed currently to check).  No problem with that.
> Microsoft's Platform SDK has MAX_PATH in <windef.h> which seems
> sensible.
> 

Yes indeed they are.

> > And if _WIN32 is defined shouldn't I expect to find a Win32 standard
> > definition such as MAX_PATH and _MAX_PATH defined?  Even Cygwin
> > itself uses MAX_PATH, E.G.: /usr/include/sys/cygwin.h.
> 
> The code in question is covered by an "#ifdef WINVER" so it's only
> included for programs that have included <windows.h> or <windef.h>
> before <cygwin.h>.

So, it appears the correct fix is to modify the code to
s/_MAX_PATH/MAX_PATH/.  Or perhaps

  #ifdef MAX_PATH
  # ifndef _MAX_PATH
  #  define _MAX_PATH MAX_PATH
  # endif
  #endif

Cheers,
Earnie.

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

