mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
Add gcc_struct to all packed structures when compiling with mingw.
Just "packed" doesn't always pack the way we expect.
This commit is contained in:
1 parent
ae8159b9ca
commit
7e47e27bd8
105 files changed
+403
-391
No files matched your search
+4
-4
@@ -52,7 +52,7 @@ struct grub_fat_bpb
|
||||
grub_uint32_t num_serial;
|
||||
grub_uint8_t label[11];
|
||||
grub_uint8_t fstype[8];
|
||||
} __attribute__ ((packed)) fat12_or_fat16;
|
||||
} GRUB_PACKED fat12_or_fat16;
|
||||
struct
|
||||
{
|
||||
grub_uint32_t sectors_per_fat_32;
|
||||
@@ -68,9 +68,9 @@ struct grub_fat_bpb
|
||||
grub_uint32_t num_serial;
|
||||
grub_uint8_t label[11];
|
||||
grub_uint8_t fstype[8];
|
||||
} __attribute__ ((packed)) fat32;
|
||||
} __attribute__ ((packed)) version_specific;
|
||||
} __attribute__ ((packed));
|
||||
} GRUB_PACKED fat32;
|
||||
} GRUB_PACKED version_specific;
|
||||
} GRUB_PACKED;
|
||||
|
||||
#ifdef GRUB_UTIL
|
||||
#include <grub/disk.h>
|
||||
|
||||
Reference in new issue
Block a user