Allow usage of booleans in the source.
This commit is contained in:
parent
8098f63998
commit
ae75a8c0c1
@ -1,3 +1,8 @@
|
||||
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* configure.in, lib/defines.h: Allow usage of booleans in the
|
||||
source.
|
||||
|
||||
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* configure.in: Allow --disable-man and --enable-man=no.
|
||||
|
@ -321,4 +321,20 @@ extern char *strerror ();
|
||||
# define unused
|
||||
#endif
|
||||
|
||||
#if HAVE_STDBOOL_H
|
||||
# include <stdbool.h>
|
||||
#else
|
||||
# if ! HAVE__BOOL
|
||||
# ifdef __cplusplus
|
||||
typedef bool _Bool;
|
||||
# else
|
||||
typedef unsigned char _Bool;
|
||||
# endif
|
||||
# endif
|
||||
# define bool _Bool
|
||||
# define false 0
|
||||
# define true 1
|
||||
# define __bool_true_false_are_defined 1
|
||||
#endif
|
||||
|
||||
#endif /* _DEFINES_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user