httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <>
Subject [PATCH] APR_INT64_T_FMT addition and modified AB
Date Wed, 11 Apr 2001 23:46:35 GMT
This syncs up Unix with Win32 (wow!) as far as having APR_INT64_T_FMT.
include/apr.hw has it defined, but include/apr.h doesn't.  This is a
first pass at getting the logic right.

Does anyone have any ideas for mimicing LLONG_MAX on machines that
don't have limits.h?  I dread using the 999999 that was there before in
ab - I'd like to replace this with something more sane.  We could do:

#ifndef LLONG_MAX
#define APR_INT64_MAX 0x7fffffffffffffffLL

This LLONG_MAX values come from /usr/include/machine/limits.h on FreeBSD
(is this accurate?).  That seems like cheese though...

This should allow this modified httpd-2.0/support/ab.c (based on my earlier
patch to new-httpd but modified to use APR_TIME_T_FMT) to compile without 
warnings on both Solaris/Sparc and Win32.

Since I don't have a Win32 compiler available, if someone can let me know
how this works on there.  Shouldn't get much different than Solaris/Sparc
and Win32/Intel.  =-)  -- justin

View raw message