diff options
| author | Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> | 2000-11-29 14:41:00 +0000 |
|---|---|---|
| committer | Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> | 2000-11-29 14:41:00 +0000 |
| commit | e5c020bf4f947b9fec3bc8cad8ee5ff2268d491d (patch) | |
| tree | a00b11cfd0ebf2af4c7cf75c7949328653362831 /include | |
| parent | 71e1d8b0dd4ebdf39e0035afeec7390bf864087d (diff) | |
Notes
Diffstat (limited to 'include')
| -rw-r--r-- | include/stdbool.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/include/stdbool.h b/include/stdbool.h index 5317aea44e921..474ac9cdcfd69 100644 --- a/include/stdbool.h +++ b/include/stdbool.h @@ -31,22 +31,14 @@ #ifndef _STDBOOL_H_ #define _STDBOOL_H_ -/* `_Bool' type must promote to `int' or `unsigned int' */ -typedef enum { - false = 0, - true = 1 -} _Bool; +#define __bool_true_false_are_defined 1 /* And those constants must also be available as macros */ -#define false false -#define true true +#define false 0 +#define true 1 /* User visible type `bool' is provided as a macro which may be redefined */ #define bool _Bool - -/* Inform that everything is fine */ -#define __bool_true_false_are_defined 1 - #if __STDC_VERSION__ < 199901L typedef int _Bool; /* not built into pre-C99 compilers */ #endif |
