summaryrefslogtreecommitdiffstats
path: root/src/fat.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-04-11 14:23:16 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-04-11 14:23:16 +0200
commit67054372873f2ed5414da7fff1cb5744148289d6 (patch)
treea8cd9501bcfc1e1efec8ca6603e7f11b0ad2ec0c /src/fat.h
parentefc94ee87ac3b4e3ecf4fb3ab4adac2ef0a6278f (diff)
add gcc_struct attribute to all __packed__ structure
do not use fseeko() with mingw32 gcc compiler
Diffstat (limited to 'src/fat.h')
-rw-r--r--src/fat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fat.h b/src/fat.h
index f15d668..4143e3c 100644
--- a/src/fat.h
+++ b/src/fat.h
@@ -73,7 +73,7 @@ struct fat_boot_sector {
/* */
uint8_t nothing[420]; /* 0x5A */
uint16_t marker;
-} __attribute__ ((__packed__));
+} __attribute__ ((gcc_struct, __packed__));
struct fat_fsinfo {
uint32_t leadsig; /* 0x41615252 */
@@ -83,7 +83,7 @@ struct fat_fsinfo {
uint32_t nextfree; /* next free cluster */
uint8_t reserved3[12];
uint32_t magic3; /* 0xAA550000 */
-} __attribute__ ((__packed__));
+} __attribute__ ((gcc_struct, __packed__));
struct msdos_dir_entry {
int8_t name[8],ext[3]; /* 00 name and extension */
@@ -98,7 +98,7 @@ struct msdos_dir_entry {
uint16_t date; /* 18 */
uint16_t start; /* 1A */
uint32_t size; /* 1C file size (in bytes) */
-} __attribute__ ((__packed__));
+} __attribute__ ((gcc_struct, __packed__));
/* Up to 13 characters of the name */
struct msdos_dir_slot {