Provide a stdbool.h in roken

This commit is contained in:
Asanka C. Herath
2010-11-24 13:07:32 -05:00
parent 827058a8ff
commit bd6e3ff7c9
2 changed files with 14 additions and 0 deletions

View File

@@ -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
View 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 */