diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-01-22 17:31:35 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-01-22 17:31:35 +0100 |
commit | 1f4a987d477c89e63928fd23fd4b168d0bef07f6 (patch) | |
tree | f630baf1f7ba349e6ed6052391de3877744174af | |
parent | 006416e8fe63996b86bf614496ce71d83d9b9057 (diff) | |
download | busybox-w32-1f4a987d477c89e63928fd23fd4b168d0bef07f6.tar.gz busybox-w32-1f4a987d477c89e63928fd23fd4b168d0bef07f6.tar.bz2 busybox-w32-1f4a987d477c89e63928fd23fd4b168d0bef07f6.zip |
pltaform.h: move include of stdint.h before uint16_t is used
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/platform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/platform.h b/include/platform.h index cbde7bc7b..bbbc0a9b6 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -218,6 +218,7 @@ | |||
218 | 218 | ||
219 | /* ---- Unaligned access ------------------------------------ */ | 219 | /* ---- Unaligned access ------------------------------------ */ |
220 | 220 | ||
221 | #include <stdint.h> | ||
221 | typedef int bb__aliased_int FIX_ALIASING; | 222 | typedef int bb__aliased_int FIX_ALIASING; |
222 | typedef uint16_t bb__aliased_uint16_t FIX_ALIASING; | 223 | typedef uint16_t bb__aliased_uint16_t FIX_ALIASING; |
223 | typedef uint32_t bb__aliased_uint32_t FIX_ALIASING; | 224 | typedef uint32_t bb__aliased_uint32_t FIX_ALIASING; |
@@ -226,7 +227,6 @@ typedef uint32_t bb__aliased_uint32_t FIX_ALIASING; | |||
226 | * a lvalue. This makes it more likely to not swap them by mistake | 227 | * a lvalue. This makes it more likely to not swap them by mistake |
227 | */ | 228 | */ |
228 | #if defined(i386) || defined(__x86_64__) || defined(__powerpc__) | 229 | #if defined(i386) || defined(__x86_64__) || defined(__powerpc__) |
229 | # include <stdint.h> | ||
230 | # define move_from_unaligned_int(v, intp) ((v) = *(bb__aliased_int*)(intp)) | 230 | # define move_from_unaligned_int(v, intp) ((v) = *(bb__aliased_int*)(intp)) |
231 | # define move_from_unaligned16(v, u16p) ((v) = *(bb__aliased_uint16_t*)(u16p)) | 231 | # define move_from_unaligned16(v, u16p) ((v) = *(bb__aliased_uint16_t*)(u16p)) |
232 | # define move_from_unaligned32(v, u32p) ((v) = *(bb__aliased_uint32_t*)(u32p)) | 232 | # define move_from_unaligned32(v, u32p) ((v) = *(bb__aliased_uint32_t*)(u32p)) |