projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3127358
)
- add C99 bool type for setups that support it.
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Sat, 20 Jan 2007 21:27:18 +0000
(21:27 -0000)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Sat, 20 Jan 2007 21:27:18 +0000
(21:27 -0000)
include/platform.h
patch
|
blob
|
history
diff --git
a/include/platform.h
b/include/platform.h
index b927c54e7f63c8ffd19b73496b8b494a2edad84d..baabd49b7ac91e8e448a4e1a133257b94f3d09ae 100644
(file)
--- a/
include/platform.h
+++ b/
include/platform.h
@@
-183,6
+183,16
@@
typedef int smallint;
typedef unsigned smalluint;
#endif
+/* ISO C Standard: 7.16 Boolean type and values <stdbool.h> */
+#if (defined __digital__ && defined __unix__)
+/* old system without (proper) C99 support */
+#define bool smalluint
+#else
+/* modern system, so use it */
+#include <stdbool.h>
+#endif
+
+
/* uclibc does not implement daemon() for no-mmu systems.
* For 0.9.29 and svn, __ARCH_USE_MMU__ indicates no-mmu reliably.
* For earlier versions there is no reliable way to check if we are building