diff options
author | Paul Eggert <eggert@penguin.cs.ucla.edu> | 2012-08-29 17:43:04 -0700 |
---|---|---|
committer | Paul Eggert <eggert@penguin.cs.ucla.edu> | 2012-08-29 17:43:50 -0700 |
commit | 1af55d85d9762a679b4302d5995f05ccd883e956 (patch) | |
tree | 48d49699537d8caeffeedd2398b45fa19c4d91a6 /lib/stdbool.in.h | |
parent | 8a73c1c5c8b04143c6583f2413cc46b0035a3384 (diff) | |
download | gnulib-1af55d85d9762a679b4302d5995f05ccd883e956.tar.gz |
* lib/stdbool.in.h (_Bool) [__cplusplus]: bool, not _Bool.
Diffstat (limited to 'lib/stdbool.in.h')
-rw-r--r-- | lib/stdbool.in.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stdbool.in.h b/lib/stdbool.in.h index 924c8ff007..1261936ae8 100644 --- 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 |