From: Bernhard Reutner-Fischer Date: Sat, 20 Jan 2007 21:27:18 +0000 (-0000) Subject: - add C99 bool type for setups that support it. X-Git-Tag: 1_5_1~346 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a8e2e1872a02fb1b5decfdc9664375edeff2fcbb;p=oweals%2Fbusybox.git - add C99 bool type for setups that support it. --- 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 */ +#if (defined __digital__ && defined __unix__) +/* old system without (proper) C99 support */ +#define bool smalluint +#else +/* modern system, so use it */ +#include +#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