On Wed, Mar 27, 2013 at 1:12 AM, Joe Swatosh <joe.swat...@gmail.com> wrote: > Hi All, > > I've downloaded a few versions of APR and looked into apr.hw on each > of them and I see APR_HAVE_LIMITS_H being set, but I don't see the > equivalent of block like: > > /* header files for PATH_MAX, _POSIX_PATH_MAX */ > #if APR_HAVE_LIMITS_H > #include <limits.h> > #else > #if APR_HAVE_SYS_SYSLIMITS_H > #include <sys/syslimits.h> > #endif > #endif > > which I find in apr.h.in. > > I must be missing something. How is this supposed to work?
I think what this means is that apr.h on Unix needed something from that file (presumably *_PATH_MAX) in order to work, but it wasn't needed on Windows. So you're left with a side effect (including that .h file) on Unix that doesn't exist on Windows. Either way you have APR_HAVE_foo_H exported in case you need to use it. Was your APR app missing something from limits.h when compiled on Windows, or did you encounter some other sort of problem because of this? > > Thanks! > -- > Joe -- Born in Roswell... married an alien... http://emptyhammock.com/