summaryrefslogtreecommitdiff
path: root/extract.c
diff options
context:
space:
mode:
Diffstat (limited to 'extract.c')
-rw-r--r--extract.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/extract.c b/extract.c
index 905ee83..035f2d2 100644
--- a/extract.c
+++ b/extract.c
@@ -1242,6 +1242,9 @@ static void huff_init_tree(struct huffman_tree *ht, struct huffman_tree_item *hi
/*
* Compression structure (size: 12596 bytes on x86-32)
*/
+#ifdef WIN32
+#pragma pack(1)
+#endif
typedef struct {
unsigned long offs0000; /* 0000 */
unsigned long cmp_type; /* 0004 - Compression type (PZIP_CMP_BINARY or
@@ -1272,7 +1275,11 @@ typedef struct {
unsigned char slen_bits[0x10]; /* 30F4 - Numbers of bits for skip copied block length */
unsigned char clen_bits[0x10]; /* 3104 - Number of valid bits for copied block */
unsigned short len_base[0x10]; /* 3114 - Buffer for */
-} __attribute__ ((packed)) pkzip_data_cmp;
+}
+#ifndef WIN32
+__attribute__ ((packed))
+#endif
+pkzip_data_cmp;
typedef struct {
const char *in_buf; /* Pointer to input data buffer */