qemu/compiler.h: Drop gcc_struct attribute in QEMU_PACKED

This attribute was added in 0f7fdd3 to reverse the effects of
-mms-bitfields, which is enabled by default when building for Windows.
Let's just align with other libraries.

Really all structures using QEMU_PACKED should be audited for bitfield
packing dependency, but it mostly looks to be applied to structs
without bitfields.
This commit is contained in:
Matt Borgerson 2024-12-28 14:57:09 -07:00 committed by mborgerson
parent 67053d1db3
commit 454668e5b2
1 changed files with 1 additions and 6 deletions

View File

@ -22,12 +22,7 @@
#define QEMU_EXTERN_C extern
#endif
#if defined(_WIN32) && (defined(__x86_64__) || defined(__i386__))
# define QEMU_PACKED __attribute__((gcc_struct, packed))
#else
# define QEMU_PACKED __attribute__((packed))
#endif
#define QEMU_PACKED __attribute__((packed))
#define QEMU_ALIGNED(X) __attribute__((aligned(X)))
#ifndef glue