View | Details | Raw Unified | Return to bug 22936
Collapse All | Expand All

(-)stdbool.h.new (-4 / +4 lines)
Lines 31-41 Link Here
31
#ifndef	_STDBOOL_H_
31
#ifndef	_STDBOOL_H_
32
#define	_STDBOOL_H_	
32
#define	_STDBOOL_H_	
33
33
34
#if __STDC_VERSION__ < 199901L
35
typedef int	_Bool;		/* not built into pre-C99 compilers */
36
#else
34
/* `_Bool' type must promote to `int' or `unsigned int' */
37
/* `_Bool' type must promote to `int' or `unsigned int' */
35
typedef enum {
38
typedef enum {
36
	false = 0,
39
	false = 0,
37
	true = 1
40
	true = 1
38
} _Bool;
41
} _Bool;
42
#endif
39
43
40
/* And those constants must also be available as macros */
44
/* And those constants must also be available as macros */
41
#define	false	false
45
#define	false	false
Lines 46-54 Link Here
46
50
47
/* Inform that everything is fine */
51
/* Inform that everything is fine */
48
#define __bool_true_false_are_defined 1
52
#define __bool_true_false_are_defined 1
49
50
#if __STDC_VERSION__ < 199901L
51
typedef int	_Bool;		/* not built into pre-C99 compilers */
52
#endif
53
53
54
#endif /* _STDBOOL_H_ */
54
#endif /* _STDBOOL_H_ */

Return to bug 22936