diff options
author | zaxl <zaxl@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-10-28 22:15:03 +0000 |
---|---|---|
committer | zaxl <zaxl@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-10-28 22:15:03 +0000 |
commit | 6022a8ea9828c481bf29086c1931e59c258d08a7 (patch) | |
tree | 249bbe68e1ee0ebfa837106d746e2938ace4e7b4 /navit/zipfile.h | |
parent | b7e834c65da3b54947a6b60f06ad8eac4307a7c8 (diff) | |
download | navit-6022a8ea9828c481bf29086c1931e59c258d08a7.tar.gz |
FIX:wince: cegcc need pragma instead of attribute(packed)
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1595 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/zipfile.h')
-rw-r--r-- | navit/zipfile.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/navit/zipfile.h b/navit/zipfile.h index 50e72499c..8df075b66 100644 --- a/navit/zipfile.h +++ b/navit/zipfile.h @@ -18,6 +18,11 @@ */ #ifndef __ZIPFILE_H__ +#ifdef __CEGCC__ +/* cegcc doesn't honor the __attribute__(packed) need pragma to work */ +#pragma pack(push) +#pragma pack(1) +#endif #define zip_lfh_sig 0x04034b50 @@ -36,7 +41,7 @@ struct zip_lfh { char zipname[0]; } __attribute__ ((packed)); -#define zip_cd_sig 0x2014b50 +#define zip_cd_sig 0x02014b50 struct zip_cd { int zipcensig; @@ -76,5 +81,8 @@ struct zip_eoc { } __attribute__ ((packed)); #define __ZIPFILE_H__ +#ifdef __CEGCC__ +#pragma pack(pop) +#endif #endif |