diff options
author | Shao Miller <shao.miller@yrdsb.edu.on.ca> | 2010-03-09 02:08:36 -0500 |
---|---|---|
committer | Shao Miller <shao.miller@yrdsb.edu.on.ca> | 2010-06-11 01:49:10 +0000 |
commit | 2f4137d83abc2a63e982439b0506f6a630a91096 (patch) | |
tree | edac3ef5066428bb6d62d9d6287b94c6b93649fa /memdisk/memdisk.h | |
parent | 08b3602db548775ca819780de77686a186156ec7 (diff) | |
download | syslinux-2f4137d83abc2a63e982439b0506f6a630a91096.tar.gz |
memdisk: Move common structures into headers
Since MDISKCHK.COM (and possibly COM32 modules) could make use of
structures found in MEMDISK's setup.c, we move these into a new
header file mstructs.h.
Also, since the OpenWatcom compiler uses a structure packing prefix
and GCC uses a structure packing postfix, we accomodate this with
preprocessor definitions around those structures needing to be
packed.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Diffstat (limited to 'memdisk/memdisk.h')
-rw-r--r-- | memdisk/memdisk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/memdisk/memdisk.h b/memdisk/memdisk.h index b6b277a8..af40823a 100644 --- a/memdisk/memdisk.h +++ b/memdisk/memdisk.h @@ -134,4 +134,8 @@ extern int check_zip(void *indata, uint32_t size, uint32_t * zbytes_p, extern void *unzip(void *indata, uint32_t zbytes, uint32_t dbytes, uint32_t orig_crc, void *target); +/* Structure packing can be different for different compilers */ +#define MEMDISK_PACKED_PREFIX +#define MEMDISK_PACKED_POSTFIX __attribute__ (( packed )) + #endif |