httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@lnd.com>
Subject RE: 2.0 build fails on src/support/rotatelogs.c on FreeBSD
Date Thu, 17 Feb 2000 17:05:51 GMT
> > Even if it was a typo this code in rotatelogs.c should have
> worked, right?
> >
> > #ifdef MAX_PATH
> > #undef MAX_PATH
> > #define MAX_PATH        1024
> > #endif
> >
> Errrr, I can explain it. I muffed it up! Apologies. Fixing it now...
>
> History of this change in case you are interested... MAX_PATH
> is defined by
> Windows to be 256. I wanted to override this value. I need to move the
> #endif right after the #undef MAX_PATH.
>
> Bill
>

Boy that code looked familiar!

Do Unixes define the constant _MAX_PATH (with leading underscore?) - I
noticed it in an MS standard library include.   Perhaps _MAX_PATH would be
more platform appropriate?  Or another name altogether (since in MS
parlance, MAX_PATH has a very, very specific meaning!)


Mime
View raw message