[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_CHECK_MEMBER() fails if member is not castable to boolean
From: |
Paul Eggert |
Subject: |
Re: AC_CHECK_MEMBER() fails if member is not castable to boolean |
Date: |
Tue, 15 Jan 2002 23:24:10 -0800 (PST) |
> From: "H. Peter Anvin" <address@hidden>
> Date: Sat, 05 Jan 2002 14:42:00 -0800
>
> A better variation might be the following:
>
> if ( &(ac_aggr.ipi_addr) != (void *)0 )
> return 0;
>
> This, however, will fail if ipi_addr is a bitfield type.
AC_CHECK_MEMBER could try both variations; if either one succeeds,
then the member exists. That's probably the most straightforward fix.