From 8dc0e1929e3af3b1673e5a8e486808386400c020 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 16 Sep 2009 00:58:11 +0200 Subject: use PACKED macro insted of open-coding GCC-ism Signed-off-by: Denys Vlasenko --- archival/libunarchive/decompress_unlzma.c | 2 +- archival/libunarchive/decompress_unzip.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'archival/libunarchive') diff --git a/archival/libunarchive/decompress_unlzma.c b/archival/libunarchive/decompress_unlzma.c index 4478cd2..ecda174 100644 --- a/archival/libunarchive/decompress_unlzma.c +++ b/archival/libunarchive/decompress_unlzma.c @@ -156,7 +156,7 @@ typedef struct { uint8_t pos; uint32_t dict_size; uint64_t dst_size; -} __attribute__ ((packed)) lzma_header_t; +} PACKED lzma_header_t; /* #defines will force compiler to compute/optimize each one with each usage. diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c index b090f26..c571ab4 100644 --- a/archival/libunarchive/decompress_unzip.c +++ b/archival/libunarchive/decompress_unzip.c @@ -1117,7 +1117,7 @@ static int check_header_gzip(STATE_PARAM unpack_info_t *info) uint32_t mtime; uint8_t xtra_flags_UNUSED; uint8_t os_flags_UNUSED; - } __attribute__((packed)) formatted; + } PACKED formatted; } header; struct BUG_header { char BUG_header[sizeof(header) == 8 ? 1 : -1]; -- cgit v1.1