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 <[EMAIL PROTECTED]> 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