perl-5.6.1 DB_file support
Mon Jan 8 09:34:00 GMT 2001
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 <firstname.lastname@example.org> 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
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
# ifndef _MAX_PATH
# define _MAX_PATH MAX_PATH
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin