From 8522e44467ebcac54201def2c6583639e74e9e24 Mon Sep 17 00:00:00 2001 From: yazoo Date: Tue, 29 Jan 2008 07:43:06 +0000 Subject: Portage win32 --- extract.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'extract.c') 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 */ -- cgit v1.2.3