From: Bruno Haible Date: Wed, 8 Aug 2001 12:59:38 +0000 (+0000) Subject: Make _Bool work in C++ mode as well. X-Git-Tag: v0.11~556 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68474d1599d8c121d8025d81f29abb9498e475bc;p=thirdparty%2Fgettext.git Make _Bool work in C++ mode as well. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index b4a1479bc..858c6069b 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2001-08-05 Bruno Haible + + * stdbool.h.in (_Bool): Define differently in C++ mode. + 2001-07-23 Bruno Haible * system.h: Assume exists. diff --git a/lib/stdbool.h.in b/lib/stdbool.h.in index 705f93e42..773432f9a 100644 --- a/lib/stdbool.h.in +++ b/lib/stdbool.h.in @@ -23,7 +23,11 @@ /* 7.16. Boolean type and values */ /* For the sake of symbolic names in gdb, define _Bool as an enum type. */ +#ifndef __cplusplus typedef enum { false = 0, true = 1 } _Bool; +#else +typedef bool _Bool; +#endif #define bool _Bool /* The other macros must be usable in preprocessor directives. */