summaryrefslogtreecommitdiffstats
path: root/src/ole.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/ole.h
parentefc94ee87ac3b4e3ecf4fb3ab4adac2ef0a6278f (diff)
add gcc_struct attribute to all __packed__ structure
do not use fseeko() with mingw32 gcc compiler
Diffstat (limited to 'src/ole.h')
-rw-r--r--src/ole.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ole.h b/src/ole.h
index 5f12569..262a9ca 100644
--- a/src/ole.h
+++ b/src/ole.h
@@ -54,7 +54,7 @@ struct OLE_HDR
uint32_t FAT_next_block; /*68*/
uint32_t num_extra_FAT_blocks; /*72*/
/* FAT block list starts here !! first 109 entries */
-} __attribute__ ((__packed__));
+} __attribute__ ((gcc_struct, __packed__));
struct OLE_DIR
{
@@ -75,7 +75,7 @@ struct OLE_DIR
uint32_t size; // 120
int16_t reserved; // 124 must be 0
int16_t padding; // 126 must be 0
-} __attribute__ ((__packed__));
+} __attribute__ ((gcc_struct, __packed__));
struct DIRECTORY
{