Re: AC_HEADER_STDBOOL: checking for _Bool separately for C and C++

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

 



On 08/28/2012 10:58 AM, Mojca Miklavec wrote:
> #if HAVE_STDBOOL_H
> # include <stdbool.h>
> #else
> # ifndef __cplusplus
> #  if ! HAVE__BOOL
>     typedef unsigned char _Bool;
> #  endif
> #  define bool _Bool
> #  define false 0
> #  define true 1
> # endif
> // not really needed except to "conform with C99"
> # define __bool_true_false_are_defined 1
> #endif

This doesn't look right, as it means that older
C++ environments won't have _Bool as they should.
I think we need to fix the real problem, somehow,
though I don't use C++ myself and am not the best
person to advise.

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux