apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davi Arnaut <d...@haxent.com.br>
Subject Re: apr_ssize_t and APR_SSIZE_T_FMT
Date Mon, 09 Jul 2007 22:31:01 GMT
Davi Arnaut wrote:
> Joe Orton wrote:
>> On Mon, Jul 09, 2007 at 10:54:12PM +0100, Joe Orton wrote:
>>> On Mon, Jul 09, 2007 at 06:25:27PM -0300, Davi Arnaut wrote:
>>>> +AC_DEFUN([APR_CHECK_TYPES_COMPATIBLE], [
>>>> +AC_MSG_CHECKING(whether $1 and $2 are the same)
>>>> +AC_TRY_COMPILE(AC_INCLUDES_DEFAULT, [
>>>> +    __builtin_types_compatible_p($1, $2);
>>>> +], [apr_types_compile=yes], [apr_types_compile=no])
>>>> +AC_RUN_IFELSE([AC_LANG_SOURCE([AC_INCLUDES_DEFAULT
>>> This should really cache properly; compiling as well as running is 
>>> redundant too; something like this should do it:
>> Or just compile and use one of those neat tricks I can never remember to 
>> arrange for a compiler error in one of the cases...
>>
>> int foo[0 - __builtin_thing()];
>>

Updated patch, now it only compiles (should work on cross-compilers now
too). I also removed the OS X overrides (not necessary anymore).

--
Davi Arnaut

Mime
View raw message