On 11 Mar 2010, at 7:08 PM, Hyrum K. Wright wrote:

I'm finding the results autoconf comes up with on Mac OS X 10.6
confusing.  E.g.:

#define SIZEOF_OFF_T 8

and sizeof(APR_INT64_T) is 8 by definition

but

#define APR_INT64_T_FMT "ld"
#define APR_OFF_T_FMT "lld"

so if INT64_T and OFF_T are the same size, why are they ending up with
different format strings?

That confused me, too. Doing some archaeological digging, it appears that Jim made that change in r809745. There's even a note in configure.in that on darwin 'long long' == 'long'. I do not know the rational.

This is part of an unfinished effort to support MacOSX universal binaries, which on 10.6 gives you both 64 bit and 32 bit builds of the same code in the same library (side by side).

As I recall jorton vetoed the effort, I need to dig out why.

Regards,
Graham
--

Reply via email to