On Thu, Jan 17, 2019 at 03:40:26PM +0100, Stefan Eissing wrote:
> I had the issue in one of my configure.ac that the extra CPPFLAGS were not 
> added, as from
> 
> > apxs -q EXTRA_CPPFLAGS
> 
> and it all compiled, except APR_OFF_T_FMT was ld instead of lld on MacOS.
> 
> Maybe this is the same effect?

The situation on MacOS is slightly different. There are specific overrides
related to apr_off_t and other such types under #ifdef DARWIN_10 in apr.h:

[[[
/*
 * Ensure we work with universal binaries on Darwin
 */
#ifdef DARWIN_10

#undef APR_HAS_LARGE_FILES
#undef APR_SIZEOF_VOIDP
#undef APR_INT64_T_FMT
#undef APR_UINT64_T_FMT
#undef APR_UINT64_T_HEX_FMT

#ifdef __LP64__
 #define APR_HAS_LARGE_FILES  0
 #define APR_SIZEOF_VOIDP     8
 #define APR_INT64_T_FMT      "ld"
 #define APR_UINT64_T_FMT     "lu"
 #define APR_UINT64_T_HEX_FMT "lx"
#else
 #define APR_HAS_LARGE_FILES  1
 #define APR_SIZEOF_VOIDP     4
 #define APR_INT64_T_FMT      "lld"
 #define APR_UINT64_T_FMT     "llu"
 #define APR_UINT64_T_HEX_FMT "llx"
#endif

#undef APR_IS_BIGENDIAN
#ifdef __BIG_ENDIAN__
 #define APR_IS_BIGENDIAN       1
#else
 #define APR_IS_BIGENDIAN       0
#endif

#undef APR_OFF_T_FMT
#define APR_OFF_T_FMT "lld"

#endif /* DARWIN_10 */
]]]

Reply via email to