diff options
| author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-20 21:27:18 +0000 |
|---|---|---|
| committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-20 21:27:18 +0000 |
| commit | c010fc0da79d998d93a22a58b0ee35ea3fe67a77 (patch) | |
| tree | db2d7a3ca852dd84db0daa2079e608eda874f7ed /include | |
| parent | 598ca9f579e86e29f1b34325f8df209677119ff0 (diff) | |
| download | busybox-w32-c010fc0da79d998d93a22a58b0ee35ea3fe67a77.tar.gz busybox-w32-c010fc0da79d998d93a22a58b0ee35ea3fe67a77.tar.bz2 busybox-w32-c010fc0da79d998d93a22a58b0ee35ea3fe67a77.zip | |
- add C99 bool type for setups that support it.
git-svn-id: svn://busybox.net/trunk/busybox@17413 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
| -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 |
