autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror


From: Stepan Kasal
Subject: Re: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror
Date: Tue, 15 Aug 2006 15:00:12 +0200
User-agent: Mutt/1.4.2.1i

Hello,

On Mon, Aug 14, 2006 at 11:42:28PM -0400, David Fang wrote:
> -------->8 snip 8<--------
> | #if HAVE_STDINT_H
> | # include <stdint.h>
> | #endif
> -------->8 snip 8<--------
...
> | #ifdef HAVE_STDINT_H
> | # include <stdint.h>
> | #endif
> 
> After all, isn't this the convention used in producing "config.h"
> and using it for conditional #includes?

Though I originally thought that `#ifdef' should be used, when I came
to autoconf community, I heard this ``it is defined as `1', so
that you can use either `#if' or `#ifdef'.''

I cannot recall where i read this, nor I can recall any reason why
#if would be better.

If there is no reason against it, we might consider switching to
#ifdef.  Paul, Ralf, what do you think?

And no, this issue is not regression: Autoconf 2.59 contains `#if HAVE'
22 times (not counting the docs), but NO occurence of `#ifdef HAVE'.
In current CVS, we have still 19 occurences of `#if HAVE' and only
7 occurences of `#ifdef HAVE' .

Have a nice day,
        Stepan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]