Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Apparently-From: Message-ID: <3A59FA3B.3AA71424@yahoo.com> Date: Mon, 08 Jan 2001 12:34:51 -0500 From: Earnie Boyd Reply-To: perl5-porters AT perl DOT org, cygwin AT cygwin DOT com X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Benjamin Riefenstahl CC: perl5-porters AT perl DOT org, cygwin AT sources DOT redhat DOT com Subject: Re: perl-5.6.1 DB_file support References: <3A5605B3 DOT AAC25D7F AT sbox DOT tu-graz DOT ac DOT at> <3A59255F DOT 85918DE8 AT sbox DOT tu-graz DOT ac DOT at> <3A5966E5 DOT 735999FE AT ece DOT gatech DOT edu> <3A59C529 DOT 4342E4D4 AT yahoo DOT com> <3A59DF65 DOT 353364C2 AT yahoo DOT com> 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 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 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 or > before . 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