diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-01-20 21:27:18 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-01-20 21:27:18 +0000 |
commit | a8e2e1872a02fb1b5decfdc9664375edeff2fcbb (patch) | |
tree | db2d7a3ca852dd84db0daa2079e608eda874f7ed /include/platform.h | |
parent | 312735878bfc2e78132882c1645974bd84893121 (diff) | |
download | busybox-w32-a8e2e1872a02fb1b5decfdc9664375edeff2fcbb.tar.gz busybox-w32-a8e2e1872a02fb1b5decfdc9664375edeff2fcbb.tar.bz2 busybox-w32-a8e2e1872a02fb1b5decfdc9664375edeff2fcbb.zip |
- add C99 bool type for setups that support it.
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 10 |
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; | |||
183 | typedef unsigned smalluint; | 183 | typedef unsigned smalluint; |
184 | #endif | 184 | #endif |
185 | 185 | ||
186 | /* ISO C Standard: 7.16 Boolean type and values <stdbool.h> */ | ||
187 | #if (defined __digital__ && defined __unix__) | ||
188 | /* old system without (proper) C99 support */ | ||
189 | #define bool smalluint | ||
190 | #else | ||
191 | /* modern system, so use it */ | ||
192 | #include <stdbool.h> | ||
193 | #endif | ||
194 | |||
195 | |||
186 | /* uclibc does not implement daemon() for no-mmu systems. | 196 | /* uclibc does not implement daemon() for no-mmu systems. |
187 | * For 0.9.29 and svn, __ARCH_USE_MMU__ indicates no-mmu reliably. | 197 | * For 0.9.29 and svn, __ARCH_USE_MMU__ indicates no-mmu reliably. |
188 | * For earlier versions there is no reliable way to check if we are building | 198 | * For earlier versions there is no reliable way to check if we are building |