Parser: Use defined Bool or create one
This commit is contained in:
@@ -21,10 +21,11 @@
|
|||||||
|
|
||||||
#define INCLUDE_CMD "@include"
|
#define INCLUDE_CMD "@include"
|
||||||
|
|
||||||
#define False 0
|
#if defined(Bool)
|
||||||
#define True 1
|
#define bool_t Bool
|
||||||
|
#else
|
||||||
#define bool_t int
|
typedef enum { False, True } bool_t;
|
||||||
|
#endif /* Bool */
|
||||||
|
|
||||||
struct conf_opt {
|
struct conf_opt {
|
||||||
char *name;
|
char *name;
|
||||||
|
|||||||
Reference in New Issue
Block a user