Provide a stdbool.h in roken
This commit is contained in:
@@ -154,6 +154,7 @@ INCFILES = \
|
|||||||
$(INCDIR)\roken.h \
|
$(INCDIR)\roken.h \
|
||||||
$(INCDIR)\roken-common.h \
|
$(INCDIR)\roken-common.h \
|
||||||
$(INCDIR)\rtbl.h \
|
$(INCDIR)\rtbl.h \
|
||||||
|
$(INCDIR)\stdbool.h \
|
||||||
$(INCDIR)\syslog.h \
|
$(INCDIR)\syslog.h \
|
||||||
$(INCDIR)\vis.h \
|
$(INCDIR)\vis.h \
|
||||||
$(INCDIR)\xdbm.h
|
$(INCDIR)\xdbm.h
|
||||||
|
13
lib/roken/stdbool.h
Normal file
13
lib/roken/stdbool.h
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#ifndef _STDBOOL_H
|
||||||
|
#define _STDBOOL_H
|
||||||
|
|
||||||
|
#ifndef __GNUC__
|
||||||
|
typedef int _Bool;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define bool _Bool
|
||||||
|
#define true 1
|
||||||
|
#define false 0
|
||||||
|
#define __bool_true_false_are_defined 1
|
||||||
|
|
||||||
|
#endif /* _STDBOOL_H */
|
Reference in New Issue
Block a user