Patch from Robert P. Day, moving byte order checks to use platform.h macros.

This commit is contained in:
Rob Landley
2006-03-04 22:40:25 +00:00
parent d9969ea175
commit 688ed0d760
4 changed files with 17 additions and 17 deletions

View File

@@ -119,10 +119,10 @@ int unlzma(int src_fd, int dst_fd)
pos_state_mask = (1 << pb) - 1;
literal_pos_mask = (1 << lp) - 1;
#if __BYTE_ORDER == __BIG_ENDIAN
#if BB_BIG_ENDIAN
header.dict_size = bswap_32(header.dict_size);
header.dst_size = bswap_64(header.dst_size);
#endif /* __BYTE_ORDER */
#endif
if (header.dict_size == 0)
header.dict_size = 1;