fixing huff_codes.c's compiling problem on CentOS 6.5 as gcc 4.4.7 only support C89

Signed-off-by: Peng Xiao <xiao.peng61@zte.com.cn>
This commit is contained in:
Peng Xiao
2017-08-23 15:18:00 +00:00
parent aff6555226
commit 9099918dcb
2 changed files with 549 additions and 548 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -95,15 +95,16 @@
*/ */
struct huff_code { struct huff_code {
union { union {
struct {
uint32_t code_and_extra:24;
uint32_t length2:8;
};
struct { struct {
uint16_t code; uint16_t code;
uint8_t extra_bit_count; uint8_t extra_bit_count;
uint8_t length; uint8_t length;
}; };
struct {
uint32_t code_and_extra:24;
uint32_t length2:8;
};
}; };
}; };