projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a73c1c
)
* lib/stdbool.in.h (_Bool) [__cplusplus]: bool, not _Bool.
author
Paul Eggert
<eggert@penguin.cs.ucla.edu>
Thu, 30 Aug 2012 00:43:04 +0000
(17:43 -0700)
committer
Paul Eggert
<eggert@penguin.cs.ucla.edu>
Thu, 30 Aug 2012 00:43:50 +0000
(17:43 -0700)
lib/stdbool.in.h
patch
|
blob
|
history
diff --git
a/lib/stdbool.in.h
b/lib/stdbool.in.h
index
924c8ff
..
1261936
100644
(file)
--- a/
lib/stdbool.in.h
+++ b/
lib/stdbool.in.h
@@
-68,6
+68,7
@@
#ifdef __cplusplus
# define _Bool bool
+# define bool bool
#else
# if defined __BEOS__ && !defined __HAIKU__
/* A compiler known to have 'bool'. */
@@
-114,8
+115,8
@@
typedef enum { _Bool_must_promote_to_int = -1, false = 0, true = 1 } _Bool;
# endif
# endif
# endif
+# define bool _Bool
#endif
-#define bool _Bool
/* The other macros must be usable in preprocessor directives. */
#ifdef __cplusplus