aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-18 10:32:09 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-18 10:32:09 +0000
commit7696e01d9b514db1e255b1c3cde7fb17f7d73a76 (patch)
tree061c6758930f183d32b3182dbb1a403b5755b260 /include/platform.h
parent7a65fd536c6d9c7a7c99384510f5398f722e62e7 (diff)
downloadbusybox-w32-7696e01d9b514db1e255b1c3cde7fb17f7d73a76.tar.gz
busybox-w32-7696e01d9b514db1e255b1c3cde7fb17f7d73a76.tar.bz2
busybox-w32-7696e01d9b514db1e255b1c3cde7fb17f7d73a76.zip
- move the smallint that is platform dependant to it's proper place
git-svn-id: svn://busybox.net/trunk/busybox@17363 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r--include/platform.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index 91d5f476d..b927c54e7 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -172,6 +172,17 @@ typedef unsigned long long int uintmax_t;
172#endif 172#endif
173#endif 173#endif
174 174
175/* Size-saving "small" ints (arch-dependent) */
176#if defined(i386) || defined(__x86_64__) || defined(__mips__) || defined(__cris__)
177/* add other arches which benefit from this... */
178typedef signed char smallint;
179typedef unsigned char smalluint;
180#else
181/* for arches where byte accesses generate larger code: */
182typedef int smallint;
183typedef unsigned smalluint;
184#endif
185
175/* uclibc does not implement daemon() for no-mmu systems. 186/* uclibc does not implement daemon() for no-mmu systems.
176 * For 0.9.29 and svn, __ARCH_USE_MMU__ indicates no-mmu reliably. 187 * For 0.9.29 and svn, __ARCH_USE_MMU__ indicates no-mmu reliably.
177 * For earlier versions there is no reliable way to check if we are building 188 * For earlier versions there is no reliable way to check if we are building