]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Make _Bool work in C++ mode as well.
authorBruno Haible <bruno@clisp.org>
Wed, 8 Aug 2001 12:59:38 +0000 (12:59 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 8 Aug 2001 12:59:38 +0000 (12:59 +0000)
lib/ChangeLog
lib/stdbool.h.in

index b4a1479bccda8f481a75c6dcac1d324e4b9f2c36..858c6069b2b7cbede2f2a6c29e6ae710658a49ff 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-05  Bruno Haible  <haible@clisp.cons.org>
+
+       * stdbool.h.in (_Bool): Define differently in C++ mode.
+
 2001-07-23  Bruno Haible  <haible@clisp.cons.org>
 
        * system.h: Assume <limits.h> exists.
index 705f93e428ab10af2ec0be073f93a7f125c281ce..773432f9a79713146d2fc8c09db0314f087a36cc 100644 (file)
 /* 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.  */