diff options
author | Colin Cross <ccross@android.com> | 2014-01-23 13:19:27 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2014-01-29 19:47:05 -0800 |
commit | af0723439af552c170425416ee8e35f4f20bbe67 (patch) | |
tree | bbce41eca757f15e2058d53e014890f06c0c1341 /ext4_utils/ext4_utils.h | |
parent | 9a2b60b28d866b94b86c7ceb3a9004d28e20b483 (diff) | |
download | extras-af0723439af552c170425416ee8e35f4f20bbe67.tar.gz |
ext4_utils: fix build for 64 bit
Correct u64/s64 definitions
Use PRIu64 to print u64
Change-Id: Icaf7998946b0a2faa03495b404af8b94e4e3d047
Diffstat (limited to 'ext4_utils/ext4_utils.h')
-rw-r--r-- | ext4_utils/ext4_utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext4_utils/ext4_utils.h b/ext4_utils/ext4_utils.h index 9b5b7c4a..447d4161 100644 --- a/ext4_utils/ext4_utils.h +++ b/ext4_utils/ext4_utils.h @@ -70,8 +70,13 @@ extern int force; #define le32_to_cpu(x) (x) #define le16_to_cpu(x) (x) +#ifdef __LP64__ +typedef unsigned long u64; +typedef signed long s64; +#else typedef unsigned long long u64; typedef signed long long s64; +#endif typedef unsigned int u32; typedef unsigned short int u16; typedef unsigned char u8; |