and _Bool type
To: None <tech-userlevel@NetBSD.ORG>
From: Takahiro Kambe <taca@back-street.net>
List: tech-userlevel
Date: 12/02/2002 00:01:31
Hi.
/usr/include/stdbool.h defines "bool" as "_Bool" introduced C99 and
NetBSD current and 1.6 have this header file.
#define bool _Bool
#define true 1
#define false 0
#define __bool_true_false_are_defined 1
But it seems that _Bool is expected to typedef'ed some place.
% cat
#include <stdbool.h>
extern bool flag;
% cc -c x.c
x.c:3: parse error before `flag'
x.c:3: warning: data definition has no type or storage class
Where is _Bool is really defined?
Best regards.
--
Takahiro Kambe <taca@back-street.net>