[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:53:53 +0200 |
User-agent: |
Mutt/1.4.2.1i |
Hello,
On Tue, Aug 15, 2006 at 02:42:49PM +0100, Keith MARSHALL wrote:
> `#if HAVE_NONSUCH_H' would be testing the *value*
> of a symbol which isn't defined, so is invalid.
> [... It] is a bug wrt current practice
> in `config.h', of not defining symbols for missing headers.
I would say it is a bug wrt the the recently introduced practice
of switching -Wundef on.
If preprocessor evaluates an expression, any identifier which is not
a macro, evaluates to 0. This is a well defined behaviour which has
been used for years.
But I agree with you that in the current situation #ifdef seems to be
better.
Stepan
- AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror, David Fang, 2006/08/14
- Re: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror, Stepan Kasal, 2006/08/15
- Re: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror, Keith MARSHALL, 2006/08/15
- Re: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror,
Stepan Kasal <=
- #if vs. #ifdef -- again (was: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror), Ralf Wildenhues, 2006/08/15
- Re: #if vs. #ifdef -- again (was: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror), Stepan Kasal, 2006/08/15
- Re: #if vs. #ifdef -- again (was: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror), nash, 2006/08/15
- Re: #if vs. #ifdef -- again (was: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror), Andreas Schwab, 2006/08/15
- Re: #if vs. #ifdef -- again (was: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror), nash, 2006/08/15
- Re: #if vs. #ifdef -- again (was: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror), Andreas Schwab, 2006/08/15
- Re: #if vs. #ifdef -- again (was: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror), Stepan Kasal, 2006/08/15
Re: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror, Paul Eggert, 2006/08/15