pltaform.h: move include of stdint.h before uint16_t is used
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 22 Jan 2011 16:31:35 +0000 (17:31 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 22 Jan 2011 16:31:35 +0000 (17:31 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/platform.h

index cbde7bc7bda79d10e83bb2b7e62bc330a08d0077..bbbc0a9b692fca5c0aade27d768c8efae4afc64b 100644 (file)
 
 /* ---- Unaligned access ------------------------------------ */
 
+#include <stdint.h>
 typedef int      bb__aliased_int      FIX_ALIASING;
 typedef uint16_t bb__aliased_uint16_t FIX_ALIASING;
 typedef uint32_t bb__aliased_uint32_t FIX_ALIASING;
@@ -226,7 +227,6 @@ typedef uint32_t bb__aliased_uint32_t FIX_ALIASING;
  * a lvalue. This makes it more likely to not swap them by mistake
  */
 #if defined(i386) || defined(__x86_64__) || defined(__powerpc__)
-# include <stdint.h>
 # define move_from_unaligned_int(v, intp) ((v) = *(bb__aliased_int*)(intp))
 # define move_from_unaligned16(v, u16p) ((v) = *(bb__aliased_uint16_t*)(u16p))
 # define move_from_unaligned32(v, u32p) ((v) = *(bb__aliased_uint32_t*)(u32p))