summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-20 21:27:18 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-20 21:27:18 +0000
commita8e2e1872a02fb1b5decfdc9664375edeff2fcbb (patch)
treedb2d7a3ca852dd84db0daa2079e608eda874f7ed
parent312735878bfc2e78132882c1645974bd84893121 (diff)
- add C99 bool type for setups that support it.
-rw-r--r--include/platform.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index b927c54e7..baabd49b7 100644
--- 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